I am in the states, but I would love to get something that monitors soil moisture with my irrigation system…so I am certainly interested in this project. How do you keep them protected from the weather?
A better test would be a sample of soil from the yard that is saturated to the point of dripping through a colander. Different soil types have different water holding capacities.
Yeah I’ve been in the habit of glass of water during the build process (for initial hardware testing), and then setting my final 100% and 0% values from insitu saturation / dry tests a little later on.
I recently built a soil moisture sensor using an SHT31 sensor in a waterproof cable — sourced here: Amazon SHT31 cable sensors.
The system runs on a Lolin D32 (ESP32) powered by a LiPo battery, all housed in a weatherproof IP67 electrical box: Amazon waterproof electrical boxes.
To maximize uptime, I implemented a deep-sleep cycle in ESPHome. The device wakes every few minutes, samples temperature and humidity from the SHT31, transmits the data to Home Assistant, then immediately returns to deep sleep. In sleep mode, current draw drops to just a few microamps, allowing the sensor to run for weeks (Your mileage may vary depending on battery. I currently project getting 6 weeks) on a single charge.
I’m planning to add a 2 W solar panel in the next revision to keep the LiPo charged indefinitely, making it a fully self-sustaining outdoor node.
Using the SHT31 for soil humidity avoids the corrosion problems common with analog probes, while still providing accurate, repeatable readings. It integrates cleanly into Home Assistant for automations like irrigation control or soil dryness alerts.
This design balances low power usage, environmental durability, and reliable sensing—a solid foundation for long-term outdoor monitoring.
Not really, It’s a generic sensor, probably a knockoff of the brand name Sensirion SHT31 . My understanding is that it is a polyester and teflon combination. It isn’t “Waterproof” it’s just “Water resistant.”
I have put it in water and it survived but I would be very hesitant to leave
it in a cup of water. The sensor would survive but I’m not so sure about the electronics inside.
The physical package is a 1 3/4" long cylinder with a membrane at the end.
Depends on that membrane and the sealing to the probe body.
Original Sensirion filter cap is made of polyester screen and teflon filter and it’s rated waterproof to 1m of water depth. Probably conservative.
Two options, take your dremel and open it or sink it to water tank for a week…
Seriously, magnifying glass could give better idea how the filter is sealed to the probe body.
I have updated this project with two new features. The sensor was using too much idle power during the sleep times. There is now a logic level MOSFET (IRLZ44N) in the power circuit stopping the power consumption.
The second feature is a capacitance moisture meter from vegtronix.