ESPHome soil-moisture node on one 18650: awake under a second per reading
An ESPHome soil-moisture sensor for a flower pot: one ESP32-S3 board and one 18650, 0.8 s awake per reading, maker-estimated ~1.5 years per charge.

What it is
A 3D-printed capsule that lives in a flower pot, wakes for under a second, and reports soil moisture over WiFi to your own MQTT broker, plant panel and Home Assistant. Runs on a single 18650 — the maker estimates about a year and a half per charge.
What you need
- LilyGO T-Energy S3 ESP32-S3 + 18650 holder, charger, protection — the whole power side on one board
- 18650 Li-ion cell maker used a 2,800 mAh flat top
- Capacitive soil sensor v2.0 check the chip: TL555C/TLC555, not NE555
- PLA + 2× M3×12 screws case prints support-free
How hard
Intermediate: three solder joints (plus an optional one-wire sensor fix), an ESPHome YAML to configure, and a printed case to assemble. No custom PCB, no breadboard permanence required.
Key Facts
- Capacitive soil-moisture node for a pot plant: wakes from deep sleep, publishes soil moisture, battery voltage and WiFi signal to an MQTT broker at home, then feeds a self-hosted plant panel and Home Assistant
- LilyGO T-Energy S3 (ESP32-S3, 16 MB flash): 18650 holder, USB-C charger (HX6610S), battery protection and a buck regulator on one board; battery voltage is readable on IO3 through a 100k/100k divider — no extra parts
- Awake ~0.8 s per reading, cut from 5.5 s by four ESPHome changes: MQTT enabled the moment WiFi connects (no 5 s wait), the same WiFi listed twice with BSSID + channel fixed (the first attempt always failed, and a full channel scan costs ~2.6 s), a static IP outside the DHCP range, and no serial log or mDNS
- The soil sensor is powered from GPIO IO2 instead of the 3.3 V rail, so it uses no battery at all while the board sleeps; wiring is three wires — GND to G, AOUT to IO1, VCC to IO2
- Maker's ESTIMATE: ~3.5 mAh per day at a 30-minute interval, about 1.5 years on the 2,800 mAh 18650 (Aspilsan INR18650 A28); sleep current not yet measured
- Cheap Capacitive Soil Moisture Sensor v2.0 boards (HW-390) have three known faults — missing regulator, NE555 instead of TL555C/TLC555, and R4 (marked 105) not grounded; the maker's board needed one wire from R4 to ground to stop stuck readings
- On-device settings page (~6 KB, served only in settings mode): WiFi scan, MQTT server, interval from 5 minutes to 4 hours, low-battery limit, a soil calibration wizard, diagnostics and OTA updates — no laptop needed
- Open source (MIT): ESPHome firmware on ESP-IDF, the FastAPI/SQLite plant panel, and the OpenSCAD enclosure + STLs — repo created 2026-11-08
About This Project
Sezgin Bilketay (@szblkty) kept forgetting to water his dieffenbachia, so he built a soil-moisture node that lives in the pot: a LilyGO T-Energy S3 (ESP32-S3 with an 18650 holder, charger and protection on board), a capacitive soil sensor powered from a GPIO pin, and a 3D-printed capsule. It wakes for about 0.8 s per reading, publishes soil moisture, battery and signal to an MQTT broker at home, and sleeps again — feeding his own plant panel and Home Assistant. Nothing leaves the home network.
The write-up explains why many cheap capacitive soil sensors misbehave (NE555 chips unreliable at 3.3 V; an ungrounded R4 that sticks readings — a one-wire fix), how powering the sensor from IO2 keeps its sleep draw at zero, and the four ESPHome changes that cut wake time from 5.5 s to 0.8 s: MQTT starts the moment WiFi connects, the same network is listed twice with BSSID and channel fixed, a static IP replaces DHCP, and serial logging is off.
Battery life is the maker's estimate: around 3.5 mAh a day at a 30-minute interval, about a year and a half on the 2,800 mAh cell, with sleep current not yet measured. Firmware, plant panel and the OpenSCAD enclosure are open source (MIT). MCU Atlas is not affiliated with the maker; this page summarizes his write-up with full credit.
Source & Attribution

How to Build It
Parts Needed
- LilyGO T-Energy S3 (ESP32-S3 with an 18650 holder, charger and protection on board)
- One 18650 Li-ion cell (the maker used a 2,800 mAh flat top) and a Capacitive Soil Moisture Sensor v2.0
- 2× M3×12 screws, four ~4.5 mm pieces of 1.75 mm filament, PLA for the printed parts
- Soldering iron, multimeter, caliper, a 3D printer, and a USB-C data cable
- An MQTT broker at home (e.g. Home Assistant's) — ESPHome is free
Steps
- 1
Pick a sensor that actually works
Many Capacitive Soil Moisture Sensor v2.0 boards (HW-390) are built wrong. Zoom into the product photos: the timer chip must be a TL555C or TLC555 (CMOS) — an NE555 is unreliable at 3.3 V — and the regulator should be fitted. Check R4 (marked 105): if it is not connected to ground, readings stick after the sensor has been wet; the fix is one thin wire from R4 to ground. Test by dipping the sensor to the white line in a glass of water: with the fix it returns to the dry value (≈2.5 V) in a second or two.
- 2
Wire the three wires
Switch the board OFF and unplug USB first. Solder the sensor cable's ends straight into the T-Energy S3 header holes: GND to G, AOUT to IO1 (analog reading), VCC to IO2. Powering the sensor from a GPIO pin is the trick — the firmware switches it off completely during deep sleep, so the sensor draws nothing.
- 3
Print the capsule (and the test comb)
Download the STLs/OpenSCAD source and print in PLA without supports, 50% infill: body upright with the floor on the bed, cap upside down, clamp halves on their split faces. Print only the bottom ~26 mm first to check the board sits in its rails, and print the four-width notch test comb (4.7/5.0/5.3/5.6 mm) — the maker's 5.3 mm tooth fit perfectly.
- 4
Clamp the sensor
Push four ~4.5 mm pieces of 1.75 mm filament into one clamp half, lay the sensor in so the teeth sit in the PCB notches, press the other half on, lower the assembly through the floor slot onto its posts, and screw it down with the two M3×12 screws from above.
- 5
Flash the ESPHome firmware
Clone szbk/Plant-Panel, adapt the ESPHome YAML (mostly secrets: WiFi, broker) and flash over a USB-C DATA cable. Two deep-sleep traps are already handled in the maker's config: safe_mode marks a boot good after 10 s (not 60), and every successful cycle is marked good so updates don't roll back while the board sleeps.
- 6
Configure for the 0.8-second wake
The four changes that cut wake time from 5.5 s to 0.8 s: enable MQTT the moment WiFi connects (no 5-s first-attempt wait), list the same WiFi network twice with BSSID and channel fixed (the first attempt always fails; a scan costs ~2.6 s), set a static IP OUTSIDE your router's DHCP range, and turn serial logging off. A QoS-1 delivery check then holds each cycle open until the broker confirms the readings arrived.
- 7
Assemble and calibrate
Insert the 18650 watching polarity, slide the board antenna-up down the rails, switch ON, screw the cap. Set up WiFi/MQTT and the measuring interval (5 min to 4 h) from the sensor's own settings page — BOOT button, a one-time MQTT message, or three failed WiFi attempts opens it. Run the calibration wizard in the pot: 'dry' is soil that needs watering, 'wet' is 10–15 minutes after watering.
- 8
Plant it and watch the panel
Push the probe into the soil up to the bottom of the case — never past the sensor's white line. Readings land on your MQTT broker and show up in the maker's FastAPI/SQLite plant panel and in Home Assistant via MQTT discovery; onboard counters (in RTC memory) tell you if a miss was WiFi, broker or signal. The battery chart over the coming weeks is how the maker validates his ~1.5-year estimate.
Bill of Materials
Parts list
6 parts · 3 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× LilyGO T-Energy S3 (V1.0)
1× Capacitive Soil Moisture Sensor v2.0 (HW-390)
2× M3×12 screws
4× 1.75 mm filament offcuts (≈4.5 mm pieces)
1× PLA for the case, cap and clamp (53.4 mm capsule, ~110 mm tall)
Not included: Tools: a soldering iron with a fine tip (thin solder and flux), flush cutters, wire stripper, multimeter, caliper, screwdriver, and a 3D printer or print service, A USB-C DATA cable for the first flash — a charge-only cable will not show up on the computer, An MQTT broker at home (for example the Home Assistant broker) to receive the readings; ESPHome itself is free
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- Our roundup of easy ESPHome projects for Home AssistantThis node and six other builds, ranked by difficulty and cost bandDocs
- Full build write-up (parts, wiring, case, firmware)Docs
- GitHub: szbk/Plant-Panel (firmware, plant panel, enclosure)Docs
- Enclosure STLs + OpenSCAD source (zip)Docs
- LilyGO T-Energy S3 board docs (schematic, outline)Docs
Related Projects







