I keep getting errors while compiling my chicken door sketc, need help debugging

dxw00d:

avoid generic names like HIGH or LOW

HIGH and LOW are not generic names, they are defined constants.

http://arduino.cc/en/Reference/Constants

Very well... not generic... but unclear. HIGH doesn't tell me if a chicken coop door is open or closed unless I read a bunch of other code and/or know what kind of hardware is being used to figure out what HIGH is supposed to mean in this context. When the door is open, it could be HIGH or LOW depending on if you're using a NC limit switch or a NO limit switch or a photodiode or a photoresistor or...