Soil Moisture Sensor Calibration¶
The soil moisture sensor can be used for schedule irrigations (i.e. determine when to water the plants); or for calculating soil water deficit to work out how much water to apply. Depending on the application, the sensor would need to be calibrated in with different procedures, but as a general guideline, we need to normalise its readings. Without this process, the raw sensor readings will be meaningless to the user and only some trends could be analysed. This section is a digest of some of these procedures, and more information is given in the notes below.
In case of irrigation scheduling, it is generally sufficient to simply match the raw readings from each sensor at both 0% (held in air) and 100% water levels (submerged in water). This is, of course, an approximation and will need some further analysis from the user to determine when to irrigate. When a more accurate measurement is required, the sensor needs to be calibrated with the actual soil where it's going to be deployed, since different types of soil will have different capacities. A valid approach is to prepare different samples of the soil with different levels of saturation, and adapt the sensor readings for it.
Image Source: Edaphic Scientific
If we are not aiming to get a full-fledged sensor reading, we will only need to measure the sensor in dry air and fully submerged in water. For that, we will use:
- A laptop with a serial interface. For instance, the Arduino IDE
- Our sensor
- A cup filled up with water and a napkin
The sensor can be calibrated using the shell interface. The process is as follows:
Connect your kit to a computer and open the terminal for the SCK. If you use the Arduino IDE, go to Tools > Serial Monitor and select
115200 baudat the bottom right corner
If you use the IDE type
sensoron the top and click
- Check if the output has something like
Soil Moisture Raw (60 sec)after
- If it's
Enabled, dry the sensor and type in:
read soil moisture raw. Repeat this command 5-10 times until you get an stable output (repeat command with arrow up)
- Put the sensor in a cup of water (until the line). Then read the value again
read soil moisture rawseveral times.
- Once you have both values, type in:
control moisture cal XXX YYYwhere XXX and YYY are the dry and wet values that you just measured
- Check that the reading is OK by:
read soil moisture percent. You should receive an answer in rh%
- Now you should see the data online (if in network mode):
Find out more
Check the project source code files.