I started this from a sketch where a PIR detector turns on a light and after 30 seconds the light goes out. This works. Earlier this week I bought a little DS1307 module and hooked it up through I2C to my Arduino Uno. Now I want to only turn on the light in the evening (lets say after 18:00) and if the PIR detector is high. For the DS1307 module I used some code I found here -> http://combustory.com/wiki/index.php/RTC1307_-_Real_Time_ClockI can read the time from the DS1307 (serial monitor).The only bit that doesn't work is this: "if (pirState == HIGH && (hour, DEC) >= 18)" Do I need to convert the "hour"? Could someone give me some pointers on how I can accomplish this?This is the complete sketch: