For this example I used the Adafruit RTClib library from this page.
Now a few things to note about your code:
You didn't not initialize the output using pinMode()
You didn't set the initial state of the output in the setup()
You will only see the print line during the minute
You didn't have...
yes i did that to test it because i wanted to see the door message and later the light message to mimic a real life scenario although it would actually be light then door.
but then when it is time for the door to shut and the light to go off it works
"
Door Closed
Light Off
18 hour(s), 40 minute(s)
Door Closed
Light Off
18 hour(s), 40 minute(s)
Door Closed
Light Off
"
now why won't it do that for On
this is what happens when it is time for the light to come on at the same time as the door
"
Door Open
18 hour(s), 35 minute(s)
Door Open
18 hour(s), 36 minute(s)
Light On // here is where the trouble is I would like it to say Door Open Light On.
18 hour(s), 36 minute(s)
Light On
18...
here is what it says when it is time for the door to open
"
18 hour(s), 34 minute(s)
18 hour(s), 34 minute(s)
18 hour(s), 35 minute(s)
Door Open
18 hour(s), 35 minute(s)
Door Open
18 hour(s), 35 minute(s)
Door Open
"
so here is what it shows when there is nothing open or shut
"
18 hour(s), 31 minute(s)
18 hour(s), 31 minute(s)
18 hour(s), 31 minute(s)
18 hour(s), 31 minute(s)
"
alright i don't know if any of you can help because this is arduino text but here is my problem. I am trying to turn 2 relays on and off monitor them on the serial monitor and every thing seems to work except the serial monitor it prints the first command but as soon as the second command tries...