1) Give a description of the problem
I need help determining the best way to have lights turn off and on from a motion detector
2) What is the expected behavior?
When someone walks into the room turn on the light and then turn them off after 8 minutes if there isn’t anyone moving in the room.
3) What is happening/not happening?
I’ve tried putting the time wait in different sections of the loop and can’t figure out what is best. I’ve had too many times to be a coincident that when I walk into the room that the light is on in it turns off instantly.
**4) Post a Green Snapshot