ESP32 Water-Leak Shutoff | Reversing Motorized Ball Valve & Manual Rearm
A water-leak controller can drive a motorized valve closed and keep the system tripped until someone rearms it.
The key idea
The leak input, valve command and valve position describe three different conditions. Position feedback, where available, distinguishes a close request from a confirmed closed valve.
What to remember
- Retain the trip even after the leak sensor dries.
- Distinguish manual rearming from reopening the valve.
Check your understanding
The leak input clears while the valve is closing. Why retain the trip?
Show the explanation
The sensor drying does not establish that the leak has been repaired. A retained trip preserves the closure request for review.