Description
Interface (4-wire):
VCC: 3.3V-5V
GND: GND
DO: digital output interface (0 and 1)
AO: analog output interface
Instructions for Use:
- Soil moisture module is most sensitive to the ambient humidity is generally used to detect the moisture content of the soil.
- The digital output D0 can be connected directly with the microntroller.
Getting started Soil Moisture Sensor
In this tutorial we will use one soil hygrometer module to measure soil moisture of a pot.
The module can give us a digital signal when the soil need watering and this output can be adjusted by the potentiometer. Or it can give us an analog signal of current soil moisture!
In this tutorial we will use the analog signal output of this module and we will change it in percentage value. Finally we will print in serial monitor the current percentage value of soil moisture.
So, let’s get started!
Step1: Hardware required
For this tutorial you will need:
- Arduino uno
- Breadboard
- Soil hygrometer/moisture module
- jumper wire
- And some soil for testing
Step2: Connecting the hardware
The Circuit
The connections are pretty easy, see the above image with the breadboard circuit schematic.
Step3: Making the code and Upload it!
Then Upload