The tomato plants that text me when thirsty
Every year I kill exactly one tomato plant, and every year by the same method: forgetting. This year the plant files a complaint instead of dying quietly.
The build: a capacitive soil sensor (the resistive ones corrode in a week, learned that the expensive way), an ESP32, and a relay on the water line from the rain barrel. Total cost under 12 euros, total shame at forgetting: zero.
// hysteresis, because a plant at "exactly the threshold" is a lying plant
if (moisture < DRY_THRESHOLD) pump_on();
if (moisture > WET_THRESHOLD) pump_off();
// two thresholds, never one, or the relay clicks all afternoon
The interesting failure was power: the ESP32 browned out every time the pump kicked in, rebooting into a loop where it watered the plant to a swamp. A 1000 µF capacitor across the supply fixed it; the shared ground wire was too thin to carry the inrush.
The plant now sends me an email when the tank is empty, which is the part my partner actually uses. Season record so far: 21 tomatoes, zero forgotten waterings.