ESP32 Controller Automates Plant Watering With Pump Safety Checks

An open-source firmware project from Barcelona-based developer Artur Puig uses soil moisture sensing and multiple safeguards to control plant irrigation.

Updated on Dec. 3, 2026 in Robotics by Wisevoter Tech Desk

Vector editorial illustration of a metal soil probe in dark soil beside a submerged water pump in a clear tank, joined by a thin tube.
Barcelona developer Artur Puig released open-source ESP32 firmware under an MIT licence that waters plants from soil moisture readings while limiting pump runaway and overwatering. AI Illustration. Upload story photo >

Developer Artur Puig has built an ESP32-based automatic plant watering controller that uses a capacitive soil moisture sensor to drive a low-voltage pump or solenoid valve. The firmware, released on GitHub under the MIT licence, delivers short watering pulses and checks sensor response between them.

Why it matters

The project shows how inexpensive microcontrollers can automate irrigation while limiting risks such as pump runaway, sensor failure and overwatering. Its open licence allows other hobbyists and makers to inspect, adapt and reuse the safety logic.

The controller takes 16 sensor samples per reading burst and uses their median, and invalid readings cannot trigger the pump; a fault is recorded if the sensor stays invalid for more than ten seconds. Whether these safeguards hold outside the 300 simulated scenarios has not been reported.

The players

Artur Puig

Artur Puig is the developer who designed the ESP32 plant watering controller and released its firmware on GitHub under the MIT licence.

The details

Each watering cycle runs the pump for five seconds, then waits ten minutes before rechecking moisture, repeating up to four times. A one-shot timer is armed before the pump output is switched on, and the task watchdog can reset the ESP32 if software stops responding, with a watchdog routine driving the pump output low. Fault states and pump usage are stored in non-volatile memory.

Timeline

  1. December 3, 2026: Article published about the ESP32 plant watering controller.

The Tech Race

The project builds on the ESP32 platform from Espressif Systems, which has become a common low-cost base for hobbyist home automation, and adds layered pump safety checks to that foundation. Its open MIT licence places it among community-driven alternatives to commercial smart irrigation kits.

Home gardeners who build or adapt this controller could automate watering without commercial smart irrigation hardware, but must verify the sensor and pump wiring themselves. The safety features are designed to limit overwatering and pump faults, though the project's real-world reliability is not yet documented.

The takeaway

Open-source firmware can bring layered safety checks to low-cost automation projects, but anyone building such a controller should test sensor and pump behaviour carefully before leaving plants unattended.

Further reading

Explore more on Robotics to see how automated controllers like this one fit into home and hobby automation.

Source note: This article includes information reported by Official Site ElectronicsForU.com.