I am a new user to the Arduino world and I am trying to build a chicken door using an Arduino and a RTC. I am trying to open the door and close the door at a specific time I am using a 12 volt motor to open and close the door. I have everything wired right but the only thing the motor does is just keeps spending no matter what time it is. Can anyone help me out? attached is the program that I am using.
ChickenDoor.ino (13.5 KB)