Component guide · Beginner · 3 min read
LilyGO T-Higrow ESP32 Plant Sensor

Soil Moisture, Light, Battery and Home Assistant
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The LilyGO T-Higrow is an ESP32 board shaped like a plant stake. It combines a capacitive soil moisture sensor, a BH1750 light sensor, a DHT11 or BME280 for air temperature and humidity, and an 18650 battery holder with charging. Program it in Arduino or ESPHome and it reports to Wi-Fi, MQTT or Home Assistant, then sleeps between readings.
Key specs at a glance
- MCU
- ESP32, Wi-Fi and Bluetooth
- Sensors
- Capacitive soil moisture, BH1750 light, DHT11 or BME280, soil salt (on some)
- Power
- 18650 holder, USB charging, solar input on some versions
- Connection
- USB for programming
- Versions
- DHT11 version and BME280 version (unsoldered option)
- Use
- Indoor pots, balcony gardens, small farms
A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
What the LilyGO T-Higrow plant sensor is
Typical pins: soil moisture on GPIO 32, salt on GPIO 34, BH1750 and BME280 on I2C SDA 25 and SCL 26, DHT11 on GPIO 16, power enable on GPIO 4 and battery voltage on GPIO 33. Check LilyGO's repository for your board version.
The sensors are powered through an enable pin, so switch it on before reading and off before deep sleep to save the battery.
LilyGO T-Higrow plant sensor pinout
The pins on the LilyGO T-Higrow plant sensor and what each one does.
| Pin | Function |
|---|---|
| GPIO 32 | Soil moisture (analog) |
| GPIO 34 | Salt / conductivity (some versions) |
| GPIO 25 / 26 | I2C SDA / SCL (BH1750, BME280) |
| GPIO 16 | DHT11 data |
| GPIO 4 | Sensor power enable |
| GPIO 33 | Battery voltage |
- GPIO 32
- Soil moisture (analog)
- GPIO 34
- Salt / conductivity (some versions)
- GPIO 25 / 26
- I2C SDA / SCL (BH1750, BME280)
- GPIO 16
- DHT11 data
- GPIO 4
- Sensor power enable
- GPIO 33
- Battery voltage
Wiring the LilyGO T-Higrow plant sensor
Keep the electronics above the soil and protect the top from rain or splashes.
| LilyGO T-Higrow plant sensor pin | Part | Notes |
|---|---|---|
| Soil probe | Push into the pot to the line | - |
| Battery | 18650 in the holder | - |
| Solar (if fitted) | 5 to 6 V panel | - |
- Soil probe
- Part:
- Push into the pot to the line
- Notes:
- -
- Battery
- Part:
- 18650 in the holder
- Notes:
- -
- Solar (if fitted)
- Part:
- 5 to 6 V panel
- Notes:
- -
Example code
Calibrate the soil reading against dry and wet soil and convert to percent with a filter. Use the DHT or BME280 platform for your version.
esphome:
name: plant-1
esp32:
board: esp32dev
wifi: { ssid: "YOUR_WIFI", password: "YOUR_PASSWORD" }
api:
i2c: { sda: 25, scl: 26 }
switch:
- platform: gpio
pin: 4
id: sensor_power
restore_mode: ALWAYS_ON
sensor:
- platform: adc
pin: 32
name: "Soil moisture raw"
attenuation: 12db
- platform: bh1750
name: "Light"
deep_sleep:
run_duration: 20s
sleep_duration: 30minSetup and tuning
note readings in dry and freshly watered soil.
read every 30 to 60 minutes and deep sleep in between.
ESPHome adds the sensors automatically.
add a cover; the board is not waterproof.
What you need
Shop this list5 of 5 found in our store · ₹12,20,088
LilyGO T-Higrow ESP32 Soil Moisture & Temperature Sensor Module with DHT11 & BME280: the part this guide coversLilyGO T-Higrow ESP32 Soil Moisture & Temperature Sensor Module with DHT11 & BME280₹989
LilyGO T-Higrow BME280 WiFi Bluetooth Soil Moisture Sensor Module – Unsoldered: another version this guide coversLilyGO T-Higrow BME280 WiFi Bluetooth Soil Moisture Sensor Module – Unsoldered₹1,569
18650 Li-ion cell: the battery for the holder18650 Li-ion Rechargeable Cell₹119Closest match, check the specs
USB Type-C cable 1 m: for programming and charging24-Core USB Type-C Cable, 1 m₹500Closest match, check the specs
Home Assistant Green: a hub for dashboardsHome Assistant Green Smart Home Hub₹23,149
Alternatives and when to choose them
- Capacitive soil moisture sensor: the bare sensor for your own board.
- RS485 soil sensors: field-grade probes.
- ESP32 overview: the controller on board.
Common mistakes to avoid
- Not switching on the sensor power pin.
- Burying the electronics.
- Reading every few seconds and draining the battery.
- Using pins from another board version.
Frequently asked questions
Does it need a hub?
No, it can send to MQTT or a web service; Home Assistant is optional.
How long does the battery last?
Weeks to months with 30-minute deep sleep.
Is it waterproof?
No; protect the top from rain.
DHT11 or BME280?
BME280 is more accurate and adds pressure.
Can I program it in Arduino?
Yes, as an ESP32 Dev Module.
Parts for this guide
Projects that use it
Put this into practice: 41 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
