Project 15 · The Build Log

A Plant Monitor That Waters Before Your Plant Gives Up

Intermediate ~2.5 hours ~$56 in parts, est.

A Plant Monitor That Waters Before Your Plant Gives Up

Disclosure: As an Amazon Associate I earn from qualifying purchases.

Most houseplants die slowly, while nobody watches the soil: too dry for a week, then drowned in one flood, then dry again. This build watches the soil instead. A sensor reads how wet the earth is, a pump adds a measured drink only when the reading says so, and a board keeps a log. About two and a half hours, about $56 in parts, and one plant that stops depending on your memory.

Get the full kit → jumps to the parts list. If you are starting from zero, read the starter-kit guide first. Good companions: the weather station (Project 08), the same sensor-and-log habit outdoors, and the e-ink dashboard (Project 13), a natural home for a plant reading.

What the Sensor Actually Measures

A capacitive sensor does not measure water directly. It measures how the soil changes an electric field, and wet soil changes it far more than dry soil. So this build starts with calibration, not code: the same reading means different things in cactus mix, dense potting soil, and a pot that drains well versus one that holds water.

It also decides the part choice that matters most. Resistive sensors — two bare metal prongs in wet earth — corrode, drift, and eventually lie. A capacitive sensor is sealed, so no metal sits in wet soil to rust. It still drifts over months and needs recalibrating when you repot, but it stays honest far longer. The pronged kind, a few dollars cheaper, is a trap.

The other idea is restraint. A monitor that waters every time it feels dry will drown a plant that is merely drying slowly, and a pump with no limits will empty a reservoir if a sensor wire comes loose. So this build has three guards: a short burst, a long rest between bursts, and a daily cap. Drinks, not floods — and a fault gets noticed, not amplified.

What You’ll Need

Total: ~$56 in parts, est. (November 2026). You will also need a pot with drainage holes, a saucer, a reservoir such as a jug, and the plant. MicroPython costs $0.

Step 1 — Calibrate Before You Automate Anything (30 Minutes)

Wire the sensor to the Pico first, the pump to nothing. In MicroPython, print the raw analogue value. Note it in dry air, in a glass of water, in soil dry to the touch, and again after a normal hand-watering, once drained. Those four numbers are your calibration.

Now pick two thresholds with room between them. The dry line is where the build may water; the wet line is where it must stop. The gap is the trick: without it, the pump chatters around one number all day. With it, the soil gets a drink, the reading climbs past the wet line, and the system rests. Average ten readings before deciding — one noisy reading must never start a pump. Keep thresholds as named values at the top of the code.

Step 2 — Wire the Pump Through the Relay, Safely (30 Minutes)

Keep two circuits in mind, though they share a supply. The control side is Pico, sensor, relay signal — all low voltage, all on the breadboard. The pump side is relay contacts, pump, tubing. Water on one side, electronics on the other, meeting only through that switch.

Connect the sensor output to an analogue pin, power to 3.3 V, ground to ground. Connect the relay signal to a digital pin, coil power to 5 V, ground to ground. Run the pump’s positive wire through the normally-open relay contacts, so the pump is off unless the Pico switches it on. Test dry first: trigger the relay, listen for the click, confirm the pump runs only when commanded. A pump that runs with the Pico unplugged is a wiring error.

Put the electronics above the water line, on a drip tray. Keep the reservoir lower than the soil, tubing end above the soil: if the reservoir is higher, water can siphon after the pump stops. Low reservoir, air gap, no siphon.

Step 3 — Write the Watering Loop: Short Burst, Long Rest, Daily Cap (45 Minutes)

The loop is boring. Every few minutes, read the sensor, average, log. If the average is drier than the dry line, run the pump about five seconds, then wait at least thirty minutes. Measure what five seconds delivers into a jug first, and adjust until one burst is a modest drink. Most small pots need far less than a worried owner thinks.

The daily cap is the safety net. Allow at most three bursts a day for one houseplant, whatever the sensor says. If the cap is hit, make it obvious — a status note or an LED that stays on — so a human looks at the plant. A sensor fallen out of the soil reads bone dry forever; the cap stops that fault becoming a flood. Serve a status page from the Pico W on your home network: last reading, last watered time, bursts today. No cloud — and after a week it shows whether your plant dries in two days or five.

Step 4 — The Supervised Week (45 Minutes of Attention, Spread Over Seven Days)

Do not set this up and leave for the weekend. Run it a full week while you are home, reservoir half full, plant in sight. Check the log each evening: did it water, how often, and does the soil feel right next morning — damp through, not soggy on top and dry underneath? Push the sensor to half the root depth, away from the pot wall.

Expect to adjust. Soil wet for days: wet line too high or burst too long. Plant drooping between bursts: dry line too low or rest too long. Readings jumping wildly: sensor loose or in an air pocket — reseat and recalibrate. Change the reservoir water weekly. The goal is not a perfect number; it is a system you trust for a long weekend, and no longer until it has earned it.

What NOT to Buy

The Total, Honestly

Build It This Weekend

Calibrate in soil you can touch, wire the pump through a relay tested dry, and let the loop prove itself for a supervised week. By next weekend you will have a log instead of a guess: a drink when dry, a rest when wet. Tomorrow’s build goes from windowsill to wall — a mirror that tells you the weather, and the next pass overhead.

Where the series goes next: the weather station (Project 08) takes the same sensor-and-log habit outside, and the full project library holds everything built so far.