Calibrating Soil Humidity Sensors for Automated Plant Watering

Hey everyone, I’ve been experimenting with using soil humidity sensors to automate watering for my plants. It’s been a fun project, but I hit a bit of a snag that I thought I’d share in case anyone else runs into the same issue.

So, the problem I encountered was that the sensor values were inverted. Instead of the humidity decreasing over time, it actually increased. For example, when I took the sensor out of the soil, it showed a value of around 70%, and when I submerged it in water, it dropped to 20%. Clearly, this was the opposite of what I expected.

I tried using the invert:true setting, but that didn’t seem to fix the issue. I was a bit stumped, but then I remembered reading somewhere that sometimes the default settings for sensors might not align with how the hardware actually behaves. So, I decided to dig a bit deeper into the configuration options.

After some research and trial and error, I found that adjusting the calibration settings manually worked wonders. I set the minimum and maximum values based on the sensor readings I got from both dry and wet states. This way, the sensor data started making sense, and the automation kicked in exactly when it was supposed to.

It’s been a great learning experience, and I’m now able to monitor and water my plants more efficiently. If anyone else is struggling with sensor calibration, I’d recommend checking the calibration settings and testing the sensor in different conditions to get accurate readings. Happy gardening! :herb: