I have tried so many tutorials and versions of using a capacitive soil moisture sensor v1.2 but I do not get accurate and consistent results. The code seems simple as it uses analogRead() which I understand. I also know how to map the values so calibration is not the issue for me. I think it might be converting the signal back from the sensor or supplying the sensor with the correct type of current i.e. battery powered. Perhaps a converter may be the best solution? Can anyone please direct me into a tutorial that works and that will guide me to have accurate results?
I have multiple microcontrollers to play around with such as:
Arduino Uno, Arduino Nano, Arduino Duo, Arduino Mega, Esp32, Esp8266 12e, Esp8266-01...
I have about 10 of these Capacitive Soil Moisture Sensors v1.2
Eventually I would like to be able to have each have a reading from different locations in my house and send it via MQTT to my server. The server and MQTT is already running and functional, I just need guidance in getting the soil moisture sensor to give accurate readings.
It would be beneficial if I could get the sensors to be powered by a battery and using the esp8266-01 as it is small, compact and energy-efficient, but I'm willing to give all of my boards a go until I get stable results.