Processor code for an Arduino to control a chicken gate.