Espececificaciones sensor de humedad del suelo:
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) 5V power supply,the higher humidity, the higher the output voltage
Packaging : Electrostatic bag sealing
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
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);
}