I am attempting to build a after dark lighting system. I am using a arduino and a LDR to control the lights via a relay. I am seeking code that would allow the lights to remain on for 5 hours and then turn off after the circuit sensors the lack of daylight.