Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Cover for ESP32 Water-Leak Shutoff | Valve Control & Wet-Reset Interlock

Video by Adaptive AgroTech. If the embedded player is unavailable, open the original video ↗.

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.

Understand the concept

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.
Pause & think

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.