Guides › Thirsty-plant alert

English · Svenska · فارسی

🌱 Thirsty-plant alert

“I want my phone to tell me when my houseplant needs water. Where do I start?”

A small WiFi board reads a soil-moisture sensor and pings your phone when the soil gets dry. One evening and about $10.

Cost$8–15
Time1 evening
LevelFirst build
PowerUSB (battery later)

Ask IotMentor

What to buy

PartWhy this oneRough cost
ESP32-C3 board (e.g. Seeed XIAO ESP32C3)Small, cheap, WiFi built in. Plenty for reading one sensor.$4–7
Capacitive soil-moisture sensorMeasures moisture with no bare metal in the soil, so it doesn't corrode like two-prong probes.$2–4
USB cable and an old phone chargerThe simplest power while you build.you likely have one
3 jumper wiresSensor to board: power, ground and signal.$1

Prices are rough ranges, not quotes. Check the current price and stock before you order.

What to install

Already run Home Assistant? Flash ESPHome onto the board. You describe the sensor in a short settings file (YAML) instead of writing code, and Home Assistant's phone app sends the alert.

No Home Assistant? A short Arduino sketch reads the sensor and sends a push message through ntfy, a free, open-source notification service: install the ntfy app, subscribe to a topic, and the board posts to that topic. Pick a long, hard-to-guess topic name, because anyone who knows it can read your alerts.

Build it in three steps

  1. Read the sensor. Wire the sensor's power to 3.3V, ground to GND, and its signal (AOUT) to an analog pin. On the ESP32-C3, use GPIO 0–4 (A0–A2 on the XIAO): its other analog pin doesn't work reliably while WiFi is on. Print the reading over USB and note two numbers: the sensor in dry air, and in a glass of water. Those are your dry and wet ends.
  2. Pick the alert point in real soil. Push the sensor into the pot up to the line marked on it, water the plant, and watch the number for a few days. Set the alert where the plant starts to look thirsty; every soil and pot is different.
  3. Send the alert. Check every 30–60 minutes, alert once when the soil passes your dry point, and don't alert again until it has been watered. Otherwise you get a message every half hour.

What catches people out

Your version is different?

Ask IotMentor with your own details: distance, power, budget, experience. It asks a few questions back, then gives you a plan like this one, free.

Ask IotMentor

Starts with: “I want my phone to tell me when my houseplant needs water. Where do I start?” Add your own details before you send it.

More guides