KeyeStudio Soil Humidity Sensor Module

Regular price
€3,85
Sale price
€3,85
Regular price
€3,85
Sold out
Unit price
Quantity must be 1 or more

The keyestudio Soil Humidity Sensor is a simple yet effective tool designed to measure soil moisture levels accurately. Ideal for gardening enthusiasts and automated irrigation systems, this sensor helps ensure optimal soil conditions for plant health. By accurately detecting soil humidity, it aids in making informed decisions about watering, ultimately promoting better growth for your plants.

Key Features

  • Real-Time Soil Moisture Detection: Monitors soil humidity continuously to provide instant feedback on moisture levels.
  • Analog Output: Outputs a voltage range of 0.2 to 2.3V, corresponding to varying moisture levels in the soil.
  • Easy Integration: Compatible with Arduino and other microcontroller platforms for straightforward implementation in projects.
  • Dual Probe Design: Utilizes two probes to effectively measure soil conductivity, offering a more accurate moisture reading.
  • User-Friendly: Simple to set up and use, making it suitable for both beginners and experienced creators.

Technical Specifications

  • Power Supply Voltage: 3.3V or 5V
  • Working Current: ≤ 20 mA
  • Output Voltage: 0.2 - 2.3V (with higher voltage indicating more moisture)
  • Sensor Type: Analog output
  • Interface Definition:
    • Pin1: Signal
    • Pin2: GND
    • Pin3: VCC

Applications

  • Automated Watering Systems: Integrate with microcontrollers to create smart irrigation systems that water plants based on moisture levels.
  • Gardening Projects: Ideal for hobbyists looking to monitor plant health in home gardens.
  • Environmental Monitoring: Suitable for various projects requiring humidity detection in soil.
  • Education: Great for STEM educational projects that involve robotics, environmental science, and programming.

Connection Diagram

Sample Code 1

/*
  # Example code for the moisture sensor
  # Connect the sensor to the A0(Analog 0) pin on the Arduino board
  # the sensor value description
  # 0  ~300     dry soil
  # 300~700     humid soil
  # 700~950     in water

*/
void setup(){
 
  Serial.begin(57600);
} 
void loop(){
  Serial.print("Moisture Sensor Value:");
  Serial.println(analogRead(0)); 
  delay(100);
}

Connection 2

Introduction to the pins of LCD1602:

  • GND: a pin that connects to ground
  • VCC: a pin that connects to a +5V power supply
  • SDA: a pin that connects to analog port A4 for IIC communication
  • SCL: a pin that connects to analog port A5 for IIC communication

Sample Code 2

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup() {
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("Value:");
}
void loop() {
  int sensorValue = analogRead(A0); // read A0 data and assign to sensorValue
  if(sensorValue<10)
  {
  lcd.setCursor(6,0);
  lcd.print(sensorValue);
  lcd.setCursor(7,0);
  lcd.print("    ");
  }
  if(sensorValue<100)
  {
  lcd.setCursor(6,0);
  lcd.print(sensorValue);
  lcd.setCursor(8,0);
  lcd.print("    ");
  }
  if(sensorValue>99)
  {
  lcd.setCursor(6,0);
  lcd.print(sensorValue);
  }
   if(sensorValue<301)
  {
  lcd.setCursor(0,1);
  lcd.print("dry soil       ");
  }
  if((sensorValue>300)&&(sensorValue<501))
  {
  lcd.setCursor(0,1);
  lcd.print("humid soil   ");
  }
     if(sensorValue>500)
  {
  lcd.setCursor(0,1);
  lcd.print("in water       ");
  }
  delay(200);
}

If upload the code 2, you will see the result as below:

Remember you can adjust the contrast by turning the potentiometer on the back if you can’t make out the words clearly.

Conclusion

The keyestudio Soil Humidity Sensor is a versatile and indispensable tool for anyone involved in gardening, agriculture, or environmental monitoring. Its ability to provide real-time moisture data makes it an essential component for automated watering systems and ensuring optimal conditions for plant growth. Invest in this sensor to enhance your gardening experience and maintain healthier plants.

Go to full site