Connect soil humidity sensor with Arduino board for digital read

How it's done

Soil humidity sensor can be used as analog and digital sensor. Before, we have described how to use it as an analog sensor.

In next few steps we will use it as a digital sensor.

On sensor board there are four pins: Vcc, GND, D0 and A0.

Connect three female side wires pins with sensor male pins (Vcc - white, GND - black and D0 - brown) as on picture.

Connect three male side wires pins with Arduino board (5V - white, GND - black and 2 - brown) as on picture.

Wire coloring is not important, it is used for easier referencing and also you can use any other digital pin on Arduino.

Activity Q&A

Need help with this activity?Add the first post