Measuring plant moisture with an Arduino

Summary

Johannes reads a cheap soil moisture sensor every two seconds through an analogue Arduino input. The sensor is connected to input A0.

Ideas

  • analogRead delivers a raw value from the sensor.
  • The serial interface makes measurements visible without an additional display.
  • A two-second interval is enough for slowly changing soil moisture.

Insights

  • Small sensor projects become understandable more quickly with traceable raw data.
  • Resistive sensors that are permanently powered can corrode and change their readings.

Facts

  • The serial output runs at 9600 baud.
  • The example code waits 2000 milliseconds between measurements.

Recommendations

  • Only power the sensor during the measurement to reduce corrosion.
  • Calibrate the dry and wet limits with the soil you actually use.
  • A capacitive soil moisture sensor (affiliate link: if you buy something, I get a small commission and the price does not change for you) has no bare electrodes in the soil and therefore does not corrode.

References

Read the original article on hanez.org

Search the Web Archive

Found a mistake or have something to add? Get in touch.