Ardunio chiken door with real time clock

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)

What do the debug prints show?

“I have everything wired right”

Show us a good schematic & image of your circuit wiring.
Posting images:
http://forum.arduino.cc/index.php?topic=519037.0

Also, please post the output from the serial monitor when you run your code.