ESP32 Water-Leak Shutoff | Valve Control & Wet-Reset Interlock
A leak signal commands a shutoff valve. A wet-reset interlock prevents a reset request from reopening the valve while the sensor still detects water.
The key idea
The controller needs separate states for detecting water, commanding closure and accepting a reset. A dry reading can permit rearming while an operator checks whether the cause of the leak has been addressed.
What to remember
- A wet reading takes priority over a reset request.
- Valve position needs its own feedback if closure must be confirmed.
Check your understanding
What should happen if someone presses reset while the leak sensor is wet?
Show the explanation
The shutoff command should remain active.