DIY

ESPHome Water leak detector With a D1 mini board

TL;DR: Create a DIY water leak detector using an ESPHome-compatible D1 mini board and a simple probe for under $10, perfect for monitoring areas like under sinks.

Frequently Asked Questions

What components are needed for this ESPHome water leak detector?

You’ll need a D1 mini board, a water leak probe, jumper wires, a USB power source, and a 100K resistor. These are readily available and make for a very affordable DIY project.

AliExpress
How do I connect the D1 mini to the leak probe?

Connect the probe to the D1 mini’s analog input (A0 pin) and ground. A 100K resistor is also required in the circuit, typically connected between the probe and the D1 mini’s 3.3V pin.

How sensitive is this water leak detector?

The sensitivity can be adjusted in the ESPHome configuration code. The provided example uses `return analog < 2.55;` which can be modified to change the detection threshold.

Can this ESPHome leak detector be integrated with Home Assistant?

Yes, once configured with ESPHome, the device will appear in Home Assistant, allowing you to create automations based on leak detection alerts.

I’ve been trying to make a simple water leakage detector to put under my kitchen sink. I came out with a pretty simple solution with a simple probe and a D1 mini.

Parts:

Schema:

image

(Notice that A0 is on the 7th pin and not the 8th like in the diagram)

 

20210409_134705

Sensitivity can be altered by changing this value:

return analog < 2.55;

4 responses to “ESPHome Water leak detector With a D1 mini board”

  1. magnificent publish, very informative. I’m wondering why the other specialists of this sector don’t notice this. You must continue your writing. I am confident, you have a huge readers’ base already

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.