← All projects
Project · 06 / 07

Smart Plant Watering System

Harvard CS50x Final Project

A web app that looks up the ideal soil-moisture level for a plant, paired with an ESP32 soil-moisture sensor and the Rachio smart-irrigation API to turn a home watering system on and off automatically.

Smart Plant Watering System demo (video thumbnail)

The project

My final project for Harvard's CS50x. I programmed an ESP32-C connected to a capacitive soil-moisture sensor via Arduino. It sends moisture data over the internet to a web page with a Flask backend and an HTML/JavaScript/Jinja frontend, which receives the data and can turn my home smart watering system on or off.

I saw a lot of opportunities for improvement, but given the lack of widespread practical use, and failing the approval of the end user (aka my wife), I didn't develop it further.

The bigger idea

The idea behind it was to build a device that can be queried for its state, checked against a condition, and then trigger an action based on it. It's the same theme as a medical monitoring device.