clock on arduino

Need help as i am struggling a little, I am trying to merge the two sketches attached i have the sensor shield with the rtc built in and need the lighting code amended to use that rtc

Thank you

Kev

sensor and rtc.txt (3.45 KB)

code to use.txt (10.6 KB)