night mode according to the real time clock, IR sensor