This is an ESPHome configuration for an ESP32 that monitors a sump pump pit, using the ESP32 capacitive touch sensors, with a level being reported to Home Assistant.
The ESP32 is mounted on a piece of PVC pipe, with wires extending down to different lengths. I used a length of old ethernet cable I had sitting around.
There's also a wire at the bottom connected to the ground pin, and this gives more reliable touch sensor values. The USB32 is powered from USB.
Pin | Touch | Color | Depth |
---|---|---|---|
GPIO32 | touch9 | white/blue | 45cm |
GPIO33 | touch8 | blue | 40cm |
GPIO27 | touch7 | white/blue | 35cm |
GPIO14 | touch6 | green | 30cm |
GPIO12 | touch5 | white/green | 25cm |
GPIO13 | touch4 | brown | 20cm |
GPIO15 | touch3 | white/brown | 15cm |
GPIO4 | touch0 | orange | 10cm |
GND | white/orange |