Light was Off Before Timer Reached the End - Relay+PIR/Radar+RF+Magnetic Door Sensor

I don’t know if this is contributing to your issue or not, but you are trying to run two functions at the same time every second… best to stagger timers so they do not coincide at all, or at least very infrequently.

And I don’t know if this is just a typo in your comments, and honestly I am not about to read through your entire code to troubleshoot… but timeout timers only run ONCE at the end of the timout… if you want them to run constantly under a set condition then you need to apply timer IDs and use timer.setInterval() with timer enable() disable() commands to control the overall activity of the timer.

https://playground.arduino.cc/Code/SimpleTimer#Functions

1 Like