I’ve been diving into the world of smart home automation lately, and I must say, it’s been an exciting journey!
One of my recent projects involved setting up an ESP32-based soil moisture sensor for my garden. The goal was to monitor moisture levels and automatically trigger a watering system when needed. While the setup itself wasn’t too complex, there were a few interesting observations along the way that I thought I’d share. First off, I was amazed at how sensitive the ESP32’s 3V3 pin is for powering the sensor. I read somewhere that it maintains a constant voltage regardless of input, which turned out to be true in my case. However, I noticed something peculiar—my sensor readings fluctuated by about 15% right at sunrise and sunset. This was puzzling because my mains voltage only varies slightly and gradually throughout the day. My initial thought was that it might be related to the city’s power grid switching between different energy sources, but I couldn’t find any correlation with the house’s input voltage. After some research, I realized that the ESP32’s ADC (Analog-to-Digital Converter) might be more sensitive to environmental changes than I anticipated. While this isn’t a huge issue for my setup—since it still provides a reliable estimate for watering—I’m curious if others have experienced similar phenomena. Have any of you encountered ADC fluctuations tied to daylight changes? I’d love to hear your thoughts or any potential solutions you might have! On a lighter note, integrating this sensor into Home Assistant has been a breeze. Using MQTT, I was able to send real-time moisture data to my dashboard, which now gives me a clear picture of my garden’s needs. It’s such a satisfying feeling to see everything come together seamlessly! If anyone else is working on similar projects or has tips for improving sensor accuracy, I’d be thrilled to hear from you. Let’s keep the smart home innovation flowing! ![]()