Soil Moisture Sensor Module

SKU: VM00009

Price:
Sale price Rs. 32.20
(excl.18% GST)
Rs. 38.00

Description

Soil Moisture Sensor Module

As the name implies, a soil moisture sensor measures soil moisture level. This can be particularly helpful if you want to accurately determine when plants need to be watered or assess how fast water drains at a specific location.

Technical Specifications

  • Operating Current: 15mA
  • Operating Voltage: 3.3V to 5V DC
  • Output Digital: 0V to 5V, Adjustable trigger level from preset
  • Output Analog: 0V to 5V based on infrared radiation from fire flame falling on the sensor
  • LEDs indicating output and power

Pinouts:

Connection with Arduino:

Module

Arduino UNO

VCC

5V

GND

GND

A0

Pin A0

D0

Pin 4

 

Analog Output Option:

Digital Output Option:

Sample code:

Analog Output Option:

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);

}

 

Digital Output Option:

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

int Sensor_State = 1;

void setup() {

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

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

}

 

void loop() {

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

  Sensor_State = digitalRead(Moisture_signal);

  if (Sensor_State == 1) {

    Serial.println("Soil is moist");

  }

  else {

    Serial.println("Soil is dry");

  }

  delay(200);

}

You may also like

Recently viewed