Ultrasonic Tank Level Sensor for ESP32
Read distance to a water surface and calibrate it to tank fill level.
Parts and sourceBefore you start
Use the linked ESPHome component on a classic ESP32 carrier with the listed interfaces. Match voltage and GPIO to the board’s pinout.
Getting started
- Start with a working ESPHome device configured for your carrier, Wi-Fi and the native API. Add the linked component and validate the configuration.
- Protect the ESP32 input from a 5 V echo. Record distances at two known fill levels before converting readings to percentages.
- Check the result locally and in Home Assistant before adding automations.