Capacitive Soil Moisture Sensor V1.2

30,00 DH 35,00 DH

Availability:

170 in stock

SKU: 0140-A Categories: ,

Description

Capacitive Soil Moisture Sensor V1.2

This sensor uses capacitive detection to measure soil moisture. The source describes it as corrosion-resistant and suggests it for automatic irrigation, plant monitoring and other projects.

Specifications stated in the listing

  • Operating voltage: 3.3–5.5V DC
  • Operating current: 5mA
  • Output: analog
  • Dimensions: 98 × 23 × 1.2mm
  • Output range: 0–3V
  • Interface: PH2.0-3P
  • Weight: 15g

The sensor detects capacitance changes at its electrodes as soil moisture changes. Its analog voltage output can be read by a microcontroller such as Arduino to monitor relative readings.

Applications listed

  • Automatic irrigation systems
  • Indoor plant monitoring
  • Smart gardening projects
  • Scientific experiments

Three-pin connection

  1. Vcc: supply, 3.3–5.5V
  2. GND: ground
  3. AOUT: analog output

Basic Arduino Uno example

Example code
const int sensorPin = A0; // Broche où le capteur est connecté
int sensorValue = 0;

void setup() {
Serial.begin(9600);
}

void loop() {
sensorValue = analogRead(sensorPin);
Serial.print("Niveau d'humidité du sol : ");
Serial.println(sensorValue);
delay(1000);
}

Purpose: reads the sensor’s analog value and prints it to the serial monitor.

Required components
  • Arduino Uno
  • Capacitive soil moisture sensor V1.2
  • Connecting wires
Code notes
  1. const int sensorPin = A0; selects the analog input pin.
  2. Serial.begin(9600); starts serial communication.
  3. analogRead(sensorPin); reads the analog value, which is printed with Serial.print and Serial.println.
Wiring
  • Sensor Vcc: Arduino 5V
  • Sensor GND: Arduino GND
  • Sensor AOUT: Arduino A0

Arduino example with I2C LCD

Example code
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 16, 2);
const int sensorPin = A0;
int sensorValue = 0;

void setup() {
lcd.begin();
lcd.backlight();
Serial.begin(9600);
}

void loop() {
sensorValue = analogRead(sensorPin);
lcd.setCursor(0, 0);
lcd.print("Humidite: ");
lcd.print(sensorValue);
lcd.print("%");
delay(1000);
}

Purpose: reads the sensor value and displays it on an I2C LCD.

Required components
  • Arduino Uno
  • Capacitive soil moisture sensor V1.2
  • 1602 I2C LCD
  • Connecting wires
Code notes
  1. Wire.h and LiquidCrystal_I2C.h are included for the LCD.
  2. LCD and sensor communication are initialized in setup().
  3. The sensor value is read and shown on the LCD.
Wiring
  • Sensor Vcc: Arduino 5V
  • Sensor GND: Arduino GND
  • Sensor AOUT: Arduino A0
  • LCD VCC: Arduino 5V
  • LCD GND: Arduino GND
  • LCD SCL: Arduino A5
  • LCD SDA: Arduino A4

Library installation

Install the LiquidCrystal I2C library through the Arduino IDE Library Manager by searching for “LiquidCrystal I2C”.

Datasheet. Price: 30 MAD (regular price 35 MAD).

Thank you for your loyalty!

EN