With the help of a humidity sensor more than just the moisture in the ground can be measured! It is also possible, for example, to determine the time for the next beer, namely when the tongue has a moisture content of less than 50%. For which applications is a humidity sensor used in your projects? Write to me!
The code contains 2 examples, which differ only by 2 points:
- The Wiring
- A program line within the loop, whether the analog value is to be read continuously or the humidity is determined by a function with time delay. It is documented in the program code. Simply remove the characters // and comment out the other program line accordingly.
The biggest problem of a moisture sensor is oxidation. Corrosion is counteracted by electrolysis using a function. This function activates our Soil Moisture Sensor for 500ms, reads the current value, rotates the polarity, and deactivates the sensor.
The output of the values is output in the serial monitor within the Arduino Web IDE.
Note that valid readings are obtained when both jags are wet with a liquid. What impact will the fertilizers, sugar, alternative sweeteners and especially alcohol have on the measurements? Volunteer!