So I know theres motion detectors, which I have, but if you stand still in front of them, they turn off as your not in motion.
Whats out there that can detect if something is in front of it and not moving?
For example;
I have motion sensor in our bathroom. Motion sensed, turn on. No motion sensed for 3 min, turn off. But then run into issue where if your on the toilet for a while, lights go out on you and you gotta wave your hand. Wife doesnt like this.
Yes I can icrease the 3min to 6, or 12, or 60. But then that kinda defeats purpose of not wasting energy with lights being left on when no one is in room.
Is there some sort of sensor I can mount that will detect if someone is sitting on the toilet?
Camera with person detection. I’m guessing that won’t be a popular choice either …
If you have LED lighting, the extra minutes amount to very little additional energy consumption. It’s certainly better than forgetting to turn off the lights for several hours.
FWIW, the arrangement I’ve created allows the user to temporarily suspend the auto-off function by simply changing the light’s brightness from the default value (i.e. the value the motion-control function automatically sets it to). Walk in, light turns on, you use the wall-switch to change it to some other level (brighter/dimmer), auto-off is suspended (it reactivates itself 20 minutes later). Now you can take a shower or ponder life on the toilet (for up to 20 minutes before the light is automatically turned off if it detects no motion).
EDIT
If you want to get fancy, you’ll need extra sensors to detect presence on the toilet and/or in the shower (photoelectric beam, more motion sensors, contact sensors, load sensor under the tub, etc).
infrared sensor, used also by garage doors as a security contact, that will watch the line close above the toilet. That’s exactly doing, what you need. Just shining one straight line, when the line is interrupted, contact will toggle.
Time of flight sensor in the ceiling, pointing straight downwards. It measures the distance to whatever is below. If it becomes much smaller, someone is uhh… using the device below
The VL53 series are popular and cheap. Alternatively, ultrasonic or pulsed coherent radar.
VCC wire on sensor connected to 3.3v pin on ESP32
GND wire on sensor connected to GND pin on ESP32
SDA wire on sensor connected to GPIO21 pin on ESP32
SCL wire on sensor connected to GPIO22 pin on ESP32
Where exactly where the home-brew device be installed in the bathroom and how will it be powered? (Many bathrooms don’t have an outlet near the toilet.) Just curious to know how you intend to manage the aesthetic and practical aspects of the installation.