I would like to use an IR motion sensor to start a timer. While the timer is running down I would like to inhibit another process from running down.
Idea is this. Motion sensors in garage, when door open and sense motion start 20 minute timer. When more motion detected restart 20 minute timer. When no motion for 20 minutes, shut garage door. Yes, I have door position sensors hooked up.
I was thinking about having the sensor trigger a variable using milli() then subtracting the trigger time from current time.
Any other ideas how to do this?