Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
Bettesworth Construction
DIY electronics

How to Build a Raspberry Pi Plant Watering System with a Website

A Raspberry Pi can monitor a pot, water it with a switched pump or valve, and show readings and manual controls on a local website. Here is how to choose the parts and calibrate it safely.

By Bettesworth Construction Team 5 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A Raspberry Pi can monitor soil moisture, switch a small pump or valve when the pot is dry, and serve a local website for status checks and manual watering. The reliable way to build it is to treat sensing, switching, water delivery, and the website as separate parts—and calibrate the sensor and watering interval in the actual pot rather than relying on a universal moisture threshold.

How the system works

The build has four connected parts: a moisture sensor in the growing medium, an input interface the Pi can read, a switched pump or valve, and a web application. The control program reads the sensor, compares the result with a threshold you have calibrated, and runs the actuator for a bounded interval when the medium is judged dry. Raspberry Pi’s bonsai watering project demonstrates this threshold-driven approach.

As an Amazon Associate I earn from qualifying purchases.

Keep the control loop independent of the website: the Pi should continue its scheduled monitoring if a browser is closed. The website can display recent readings and watering events and provide a guarded manual command. A project description matching this website-based build describes a Pi-hosted site for checking status and triggering watering; it does not establish that any particular older software stack is suitable today.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a sensor and connect it to the Pi

First check whether the sensor output is analog or digital. Raspberry Pi GPIO inputs do not directly measure analog voltage. If you choose an analog-output probe, add an analog-to-digital converter (ADC) between the sensor and Pi; the bonsai project documents this arrangement. Digital-output sensors may provide a threshold signal, depending on the model, while some designs provide readings the program can interpret.

#1 Best Overall
AEDIKO Upgrade Automatic Irrigation DIY Kit Self Watering System with Capacitive Soil Moisture Sensor 5V Relay Module and Water Pump + 50cm Silicone Tubing for Garden Plant Flower Watering DIY
  • Automatic Irrigation DIY Kit: LM393 Soil Moisture Detect Sensor,Mini Water Pump, Tubing, Battery Case,One Channel 5V Relay Module and Jumper Wires in One Plant Watering System, It Can Water Plants and Flowers Automatically ,According to Monitor the Soil Moisture
  • LM393 Soil Moisture Detect Sensor: Used LM393 Chip and Stabilizes. Operating Voltage: 3.3V to 5V; PCB Size: 32mm x 14mm/ 1.26 inch x 0.55 inch; Equipped with a Fixed Bolt Hole that is Easy to Install
  • 1 Channel 5V Relay Module: Maximum Load: AC 250V/10A, DC 30V/10A; Operating Voltage 12V; Power Indicator (Green), Relay Status Indicator (Red)
  • Mini Water Pump: Rated Voltage: DC 3V or 4.5V; No Load of Water Discharge Capacity: 100L / H ; Load Rated Current: 0.18A; Use: Diving Type
  • Wide Application: This Submersible Pump Can be Used for Small Size Aquarium, Fish Tank, Pond, Tabletop Fountains, Water Gardens and Hydroponic Systems

Probe technology also matters. The Raspberry Pi examples include capacitive sensors, but the available project descriptions do not establish a universal winner for accuracy or lifetime across sensor types. Select a probe suited to the growing medium and installation, then test it in your own pot. A reading is a sensor value, not automatically a calibrated moisture percentage: Raspberry Pi Magazine’s hydroponics tutorial cautions that its sensor approach is more useful for detecting new saturation than precisely measuring ongoing moisture.

Choose the water-delivery method

Option Fits when What to plan for
Low-voltage submersible pump Water is held in a reservoir and needs to be moved through tubing to the pot. Match pump voltage and current to its supply and switching device; check that the pump can lift water through the intended tubing route. The Raspberry Pi bonsai project is an example of pump-based watering.
Solenoid valve The plumbing and water source are arranged so opening a valve can deliver water to the plant. Plan a suitable water path and a bounded opening interval. Raspberry Pi’s Pi Zero watering example uses a relay-controlled valve.

These are documented approaches, not a controlled comparison. The sources do not establish which is cheaper, more reliable, or more precise in general. Decide based on the water source, required flow, plumbing layout, and whether the system must lift water from a reservoir.

Rank #2
RAINPOINT Large Display Automatic Plant Waterer Indoor for Pot Plant,Cycle & Soak Mode Vacation Self Watering Drip Irrigation System Device Kit Herb Garden Greenhouse Grow Tent Water 10-15 Plants
  • 【👍𝗞𝗡𝗢𝗪 𝗧𝗛𝗘 𝗡𝗘𝗫𝗧 𝗪𝗔𝗧𝗘𝗥𝗡𝗚 𝗧𝗜𝗠𝗘 𝗔𝗧 𝗔 𝗚𝗟𝗔𝗡𝗖𝗘】‌Our large LCD screen displays both your watering interval settings and the next scheduled watering time, so you can easily confirm when your plants will be watered again. No guessing, no manual calculation — just easier plant care when you’re busy or away.
  • 【✅𝗡𝗢 𝗥𝗘𝗣𝗥𝗢𝗚𝗥𝗔𝗠𝗠𝗜𝗡𝗚 𝗔𝗙𝗧𝗘𝗥 𝗥𝗘𝗖𝗛𝗔𝗥𝗚𝗜𝗡𝗚】‌Your saved watering schedule stays in memory when the battery runs low or runs out. After recharging or plugging the unit back in, there’s no need to reset the program — simply restore power and your watering plan is ready to continue.
  • 【🔄𝗙𝗟𝗘𝗫𝗜𝗕𝗟𝗘 𝗪𝗔𝗧𝗘𝗥𝗜𝗡𝗚 𝗪𝗜𝗧𝗛 𝗖𝗬𝗖𝗟𝗘 & 𝗦𝗢𝗔𝗞 𝗠𝗢𝗗𝗘】‌Set watering frequency from every 8 hours to every 30 days, with watering duration from 20 seconds to 20 minutes for different plant needs. For watering over 2 minutes, choose continuous watering or Cycle & Soak mode, which breaks watering into shorter cycles with soak time in between to help reduce runoff, overwatering, and dry spots.
  • 【⚙️𝗠𝗔𝗡𝗨𝗔𝗟 & 𝗗𝗘𝗟𝗔𝗬 𝗪𝗔𝗧𝗘𝗥𝗜𝗡𝗚 𝗖𝗢𝗡𝗧𝗥𝗢𝗟】‌Use manual watering for quick extra hydration without changing your saved schedule. Delay watering pauses the plan for 24, 48, or 72 hours when plants do not need water, such as cooler weather or when the soil is still moist.
  • 【💧𝗠𝗢𝗥𝗘 𝗘𝗩𝗘𝗡 𝗪𝗔𝗧𝗘𝗥 𝗗𝗜𝗦𝗧𝗥𝗜𝗕𝗨𝗧𝗜𝗢𝗡】‌This Indoor drip irrigation system helps deliver water more evenly across multiple pots, so plants closer to the pump do not get too much water while farther plants stay too dry. The included anti-siphon valve helps reduce unwanted dripping and water imbalance.

Switch the actuator safely

Do not power a pump or valve from a Pi GPIO pin. Use a suitably rated relay module, relay HAT, transistor driver, or other switching stage, selected for the actuator and circuit. The Raspberry Pi examples show relay-controlled pumps and a relay HAT with a solenoid valve, but their projects are not universal wiring diagrams.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Check the pump or valve’s voltage and current requirements.
  • Check that the switching device is rated for the actuator’s load and supply.
  • Choose a power supply with capacity appropriate to the actuator; do not assume the Pi’s supply can also run it.
  • Keep water, tubing, and possible leaks away from the Pi, power connections, and switching electronics.

Consult the documentation for the specific sensor, switching device, actuator, and supply before wiring. The examples establish viable architectures, not ratings or connection details for every combination.

Rank #3
ALAMSCN 10PCS Automatic Irrigation DIY Kit Self Watering System Capacitive Soil Moisture Sensor DHT11 Sensor 0.96" I2C OLED Display 1 Channel 5V Relay Module Water Pump for Arduino
  • 【10PCS Automatic Irrigation Kit】Make an Automatic Irrigation System using some simple sensors, it automatically waters plants and flowers according to monitor the soil moisture efficiently
  • 【Note】The (for esp8266) is not included.
  • 【DHT11 Sensor】A basic digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, make the data you get more accurate
  • 【0.96″ OLED Display】Interface the Capacitive Soil Moisture Sensor with ESP8266 & 0.96″ OLED Display, realize data visualization
  • 【Come with Accessories】We have also added 1M water tubing, 9V power clip, breadboard and jumper wires that will be needed in the project. Please refer to the instructions for assembly, contact our customer service for a complete tutorial.

Build a conservative control loop

Use the first version to observe readings and verify water delivery before allowing unattended operation. Raspberry Pi’s Pi Zero example describes periodic readings and timed valve operation; a separate Raspberry Pi Pico project describes taking another moisture reading before dispensing more water. Those patterns support a cautious loop:

  1. Read the sensor at an interval appropriate to your implementation and record the value.
  2. Compare it with a dry threshold you have established in the actual pot.
  3. If it is below that threshold, run the pump or open the valve only for a short, fixed maximum interval.
  4. Wait for water to spread through the medium, then take another reading before deciding whether another dose is needed.
  5. Record the event and provide a way to stop or disable watering.

Do not copy a threshold or pump duration as if it were a plant-care rule. Probe placement, potting mix, sensor type, reservoir height, pump flow, and plant needs all affect what a reading or timed dose means. Test the amount delivered and watch how the particular pot responds before leaving the system unattended.

Rank #4
WayinTop Upgrade Automatic Irrigation DIY Kit Self Watering System for Garden Plant, Development Board + 4pcs Soil Moisture Sensor + 4 Channel Relay + 4pcs Water Pump + 5M Vinyl Tubing + Jumper Wire
  • 【Upgraded Automatic Watering System】Combine development board with USB download cable, water pump, tubing, soil moisture sensor, 4 channel 5V relay module and jumper wires in one plant watering system, including all component for a whole for Arduino DIY drip irrigating system.
  • 【Take Care of Your 4 Plants Anytime】You can have the system to water your 4 plant automatically. Whenever your soil becomes too dry, the pump is set into motion and water flows up the tube and into the pot. You don’t have to worry about your plants while going for vacations.
  • 【Development Board】The board comes preprogrammed with a bootloader that allows you to upload new code to it without the use of an external hardware programmer.
  • 【Capacitive Sensor】Insert it in to the soil around your plants and With a screen and a motherboard, you can talk to your plants. To see if your plants is thirsty, do they need more water to moisten it?
  • 【Reliable Support】We have prepared detailed automatic self watering tutorial, includes: guidance manual, demo code, burning tools, necessary class libraries.(All of these are in E-format. You can contact us on Amazon, we will send PDF Document to you at any time.)
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What the website should show and control

A small local web application is sufficient for a maker build. It can show the latest sensor status and last watering event, and offer a manual watering button with a maximum run time. A Pi-hosted local interface is demonstrated in the bonsai project; the title-matched project description also describes status checks and manual triggering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Keep manual watering bounded just like automatic watering, and ensure the interface cannot accidentally hold a pump or valve open indefinitely. Flask or another web framework is an implementation choice, not a requirement established by these project examples. Their descriptions also do not establish authentication or secure remote access, so a local demonstration should not be treated as a securely accessible public service.

Best Value
6pcs 3.3V-5V Soil Hygrometer Detection Module Soil Moisture Detect Sensor for Arduino Automatic Watering System Robot Smart car
  • 【Good Quality】The surface is treated with nickel plating, which can improve the conductivity, prevent the problem of easy rusting in contact with soil, and extend the service life.
  • 【How to adjust】Dual output mode, digital output, and more accurate simulation output. The blue potential in the module is used to regulate soil humidity. If you adjust it clockwise, the controlled humidity will increase and it will be smaller against the clockwise.
  • 【Control the humidity of the soil】Control the corresponding threshold by adjusting the potentiometer. When the humidity is lower than the set value, the start relay is activated, and when the humidity is higher than the set value, the relay is disconnected.
  • 【Wide range humidity 】If the humidity is lower than the set value, the DO will output a high level, and if the humidity is higher than the set value, the DO will output high levels and DO is low.
  • 【Widely Application】It can be used in the module plant watering device equipment without managing your garden plant. This must have a tool to connect the garden! We recommend that you wet the indoor plant to water or monitor the soil in the garden.

Calibrate and test before relying on it

  • Observe the sensor’s readings in the dry and recently watered conditions of the actual pot; use those observations to choose a threshold.
  • Run the actuator briefly and check where the water goes, how much reaches the pot, and whether the tubing leaks or shifts.
  • Recheck readings after watering and allow time for moisture to distribute before considering another dose.
  • Test what happens if the sensor reading is implausible, the website is unavailable, or watering must be stopped.

The cited projects demonstrate ways to assemble the system, but they do not publish universal settings, a standard watering schedule, or a controlled comparison of actuator performance. Calibration and a cautious trial in the finished pot are therefore essential parts of the build.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Site Office

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.