Ks0049 keyestudio Soil Humidity Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
Line 10: Line 10:
*Power Supply Voltage: 3.3V or 5V
*Power Supply Voltage: 3.3V or 5V
*Working Current: ≤ 20mA
*Working Current: ≤ 20mA
*Output Voltage: 0-2.3V (When the sensor is totally immersed in water, the voltage will be 2.3V) Thigher humidity, the higher the output voltage
*Output Voltage: 0-2.3V (When the sensor is totally immersed in water, the voltage will be 2.3V) The higher humidity, the higher the output voltage
*Sensor Type: Analog output
*Sensor Type: Analog output
*Interface Definition: Pin1- signal, pin2- GND, pin3 - VCC  
*Interface Definition: Pin1- signal, pin2- GND, pin3 - VCC  

Revision as of 14:41, 28 April 2018

Introduction

This is a simple soil humidity sensor aimed to detect the soil humidity. If the soil is in lack of water, the analog value output by the sensor will decrease, otherwise, it will increase. If you use this sensor to make an automatic watering device, it can detect whether your botany is thirsty to prevent it from withering when you go out. Combine this sensor with Arduino controller can make your plant more comfortable and your garden more smarter.

The soil humidity sensor module is not as complicated as you might think, so if you need to detect the soil in your project, it will be your best choice. The sensor is set with two probes which are inserted into the soil. If the current goes through the soil, the sensor will get resistance value by reading the current changes between the two probes, then convert the resistance value into moisture content. The higher moisture (less resistance), the higher conductivity the soil has.
The surface of the sensor has undergone metallization process to prolong its service life. Insert it into the soil and then use the AD converter to read it. With the help of this sensor, the plant can remind of you: I need water.  
thumb

Specification

  • Power Supply Voltage: 3.3V or 5V
  • Working Current: ≤ 20mA
  • Output Voltage: 0-2.3V (When the sensor is totally immersed in water, the voltage will be 2.3V) The higher humidity, the higher the output voltage
  • Sensor Type: Analog output
  • Interface Definition: Pin1- signal, pin2- GND, pin3 - VCC
  • Service life: About one year (gold-plated surface for enhancing conductivity and corrosion resistance )
  • Module Size: 20X60mm

Connection Diagram


thumb

Sample Code

/*
  # 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);
}

Resources

Video

http://www.keyestudio.com/wp/ks0049/

PDF

https://drive.google.com/open?id=1Hp8-9BQQKJiEujkw-uQ0XHQxN2jccTgU

Buy from

Official Website

http://www.keyestudio.com/keyestudio-soil-humidity-sensor-for-arduino.html

Amazon

https://www.amazon.com/keyestudio-Soil-Humidity-Sensor-Arduino/dp/B0177SIDMY/