Soil Moisture Sensor

Soil Moisture Sensor


Soil Moisture Sensor Module consist of two probes which are used to measure the volumetric content of water. The two probes allow the current to pass through the soil and then it’s get the resistance value to measure the moisture value.

Specifications

  • Cable length:20 Cm
  • Shipment weight:0.105 kg
  • Shipment dimension:8*6*3 cm
  • VCC= 5 V or 3.3 V. May be powered from a digital output pin on a Uc
  • GND= Ground, must be common with the Uc
  • D0= Digital output of comparator circuit. May be connected to Uc or directly to a 5 V relay or similar device
  • A0= Analog output usually connected to an analog input on Uc.
  • Detection Humidity

Applications

  • Agriculture
  • Archeology
  • Biofuel study
  • Erosion studies
  • Dust Control
  • Soil carbon sequestration studies



Connect Sensor to Arduino

The sensor can be used through use of the analog output or the digital output. Both options shown below:

Analog Output Option

Soil moisture sensor connections (analog output option)

Click to enlarge

Digital Output Option

Soil moisture sensor connections (digital output option)

Click to enlarge



Arduino Code – Analog Output Option

1

2

3

4

5

6

7

8

9

10

11

12

13

14

//Arduino Code - Soil Moisture

 

int Moisture_signal = A0; //Define the Analog pin# on the Arduino for the soil moisture sensor signal

 

void setup() {

  Serial.begin(9600); // Start the serial communication

}

 

void loop() {

  int Moisture = analogRead(Moisture_signal);

  Serial.print("Soil Moisture Level: ");

  Serial.println(Moisture);

  delay(200);

}

Arduino Code – Digital Output Option

//Arduino Code - Soil Moisture






Arduino

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

//Arduino Code - Soil Moisture

 

int Moisture__dig_signal = 4; //Define the Digital Input on the Arduino for the sensor signal

int Sensor_State = 1;

void setup() {

  pinMode(Moisture__dig_signal, INPUT); //Step pin as input

  Serial.begin(9600); // Start the serial communication

}

 

void loop() {

  Serial.print("Soil Moisture Level: ");

  Sensor_State = digitalRead(Moisture__dig_signal);

  if (Sensor_State == 1) {

    Serial.println("Wet");

  }

  else {

    Serial.println("Dry");

  }

  delay(200);

}


Frw 500

Related Products

ESP8266 serial port wifi module NodeMCU Lua V3 Internet of Things development board TYPE-C interface CH340

ESP8266 serial port ...

Frw 11,000

Arduino Uno SMD Electronic Development Board, 32 Kb

Arduino Uno SMD Elec...

Frw 10,000

ESP32 NodeMCU Module WLAN WiFi Development Board | Dev Kit C V2 with CP2102 compatible with Arduino

ESP32 NodeMCU Module...

Frw 15,000

HC-SR04 Ultrasonic sensor

HC-SR04 Ultrasonic s...

Frw 4,500

L298N 2A Based Motor Driver Module

L298N 2A Based Motor...

Frw 4,500

L293D driver motor shield for Arduino

L293D driver motor s...

Frw 4,300

Mini Water / Fluid Pump MOD45 ,R12

Mini Water / Fluid P...

Frw 2,450

0.08MPa 370 Motor 12V DC Air pump/Oxygen filling pump COM45, R37

0.08MPa 370 Motor 12...

Frw 8,000

MQ135 Air Quality Detector Sensor Module

MQ135 Air Quality De...

Frw 6,900

Electrolytic Capacitors0.1uF – 4700uF/25v

Electrolytic Capacit...

Frw 300

MAX30100 - Heart Rate Oxygen Pulse Sensor

MAX30100 - Heart Rat...

Frw 3,950

Single Channel 5V Relay Module

Single Channel 5V Re...

Frw 2,400

Channel 5V Relay Module

Channel 5V Relay Mod...

Frw 4,300

4 Channel 5V Relay Module

4 Channel 5V Relay M...

Frw 5,950

PCB Board 9*15cm PRO24, R22

PCB Board 9*15cm PRO...

Frw 1,000

LED 5MM 2MA GN

LED 5MM 2MA GN

Frw 50

Multi Coin Acceptor

Multi Coin Acceptor

Frw 35,000

4 * 4 Matrix Array Matrix Keypad

4 * 4 Matrix Array M...

Frw 5,000

AS608 Fingerprint Reader Sensor Module Optical

AS608 Fingerprint Re...

Frw 27,000

5A ACS712 ACS712ELC Current Sensor Module

5A ACS712 ACS712ELC ...

Frw 5,500

Infrared Obstacle Avoidance Tracking Sensor Module

Infrared Obstacle Av...

Frw 2,500

Soil Moisture Sensor

Soil Moisture Sensor

Frw 500

TTP223 Touch sensor

TTP223 Touch sensor

Frw 3,000

Smallest SIM800L GPRS GSM BRD56 , R11

Smallest SIM800L GPR...

Frw 11,500

Raspberry Pi Camera 175 Degree OV5647 Sensor 5MP Cameras Module Wide Angle Fisheye Lens for Pi 5 / 4B / 3B+ / 3B / Zero 2 W 1.3

Raspberry Pi Camera ...

Frw 35,000

MQ-7 Gas Sensor Module for Carbon Monoxide

MQ-7 Gas Sensor Modu...

Frw 8,900

GY-521 MPU6050

GY-521 MPU6050

Frw 5,500

DSM501A Dust Sensor Module PM2.5 Detection Dector COM45, R28

DSM501A Dust Sensor ...

Frw 18,500

DHT22/AM2302 Digital Temperature And Humidity Sensor Module SENS54 ,R13

DHT22/AM2302 Digital...

Frw 7,800

Arduino Active Buzzer Module COM52 ,R25

Arduino Active Buzze...

Frw 2,700