MoistureSensors

Page Actions

Moisture sensors

Different types of sensors

There are two different types of moisture sensors:
  • resistive sensors, measuring the resistance between two electrodes which changes with humidity
  • capacitive sensors, where the change in capacitance is measured.

Resistive sensors

For resistive sensors, I found again two types:
resistiveMoisture1.png resistiveMoisture2.png
The sensor on the left, using a PCB to implement the electrodes, should be avoided because electrolysis happens when a current flows from one electrode to the other in a humid environment, dissolving the electrodes in just a few days of operation.

Capacitive sensors

There are plenty of these sensors on the market, and they all look pretty much the same. However, quite a number of them have serious design flaws, as explained in this YouTube video:
https://www.youtube.com/watch?v=IGP38bz-K48.

capacitiveMoisture.png

The principle of how to convert the change of capacitance into a signal level is also explained in the video. Here is the circuit diagram of the sensor for reference:

capacitiveSensor.jpg

Software

The software for these sensors is rather simple, as they provide an analogue signal, inversely proportional to the moisture in the soil. The software must therefore simply read out an ADC channel.

moistureResults.png

The plot shows a value of ~ 1000 measured when the sensor was inserted into a glass of water and ~ 2500 when it was removed. These values lay in the linear range of the ESP32 ADC.

-- %USERSIG{UliRaich - 2022-07-31}%

 
I Attachment Action Size Date Who Comment
capacitiveMoisture.pngpng capacitiveMoisture.png manage 94 K 31 Jul 2022 - 13:35 UnknownUser  
capacitiveSensor.jpgjpg capacitiveSensor.jpg manage 81 K 31 Jul 2022 - 13:52 UnknownUser  
moistureResults.pngpng moistureResults.png manage 162 K 31 Jul 2022 - 13:41 UnknownUser  
resistiveMoisture1.pngpng resistiveMoisture1.png manage 163 K 31 Jul 2022 - 13:18 UnknownUser  
resistiveMoisture2.pngpng resistiveMoisture2.png manage 160 K 31 Jul 2022 - 13:18 UnknownUser  
Topic revision: r1 - 31 Jul 2022, UliRaich