I bought two sensor switches, one for the closet and the other for the restroom. The one for the closet is set to Vacancy mode and it turns off correctly to the time I have set. The other sensor is installed in the restroom. I set that one to Occupy. For those of you who don't know Vacancy mode refers to manually turning on the switch and the switch will automatically turn off at a set time delay. Occupancy mode means the switch automatically turns on and automatically turns off after it set time delay. The restroom sensor perfectly turns on and off correctly however, if I enter the restroom after manually turning off the switch or even after the switch turning off automatically it will not turn on immediately even if I wait 1, 2, 3, 4, or 5 minutes before entering the restroom. I haven't checked to see how many minutes it takes to reset itself but it shouldn't work that way, it should turn on as soon as you go into the restroom. Also, I adjusted the detection range to the Max and it does the same thing. I went to The Home Depot and purchased two Lutron motion sensor switches. I paid $20 for each one but they work perfectly like advertised and they are way easier to program. Lutron is way more reliable!