Check the 35 other Arduino tutorials

#31 · Capacitive soil moisture sensor


The capacitive soil moisture sensor allows you to measure the moistness of soil. The biggest advantage over a traditional moisture sensor is that the capacitive sensor doesn't corrode. For this tutporial you can use both V1.2 and V2.0 of the capacitive soil moist sensor.

In this tutorial I'll explain how you can read the soil moisture sensor and what the advantages are. Further you learn how to work with the map() function.

Fun fact: One pin on my sensor is labeled AUOT which should be AOUT for Analog OUT.

#31 · Capacitive soil moisture sensor schakelschema

Tutorial goals

  • Reading capacitive soil moisture sensor
  • Difference capacitive and resistance sensor
  • Working with map() function

Components needed

  • 1× Arduino
  • 3× Jumper wire (male-male)
  • 1× Sensor cable
  • 1× Capacitive soil moisture sensor

Bas van Dijk

About Bas on Tech


My name is Bas van Dijk, entrepreneur, software developer and maker. With Bas on Tech I share video tutorials with a wide variety of tech subjects i.e. Arduino and 3D printing.

Years ago, I bought my first Arduino with one goal: show text on an LCD as soon as possible. It took me many Google searches and digging through various resources, but I finally managed to make it work. I was over the moon by something as simple as an LCD with some text.

With Bas on Tech I want to share my knowledge so others can experience this happiness as well. I've chosen to make short, yet powerful YouTube videos with a the same structure and one subject per video. Each video is accompanied by the source code and a shopping list.