

The Capacitive Soil Moisture Sensor v1.2 (Manufacturer Part ID: SEN0193) by DFRobot is a reliable and durable sensor designed to measure the volumetric water content in soil. Unlike resistive soil moisture sensors, this capacitive sensor detects changes in soil capacitance, making it non-corrosive and long-lasting. It provides an analog output that corresponds to the soil moisture level, making it ideal for applications requiring precise and consistent soil moisture monitoring.








Below are the key technical details of the Capacitive Soil Moisture Sensor v1.2:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V - 5.5V |
| Output Voltage Range | 0V - 3V (analog output) |
| Current Consumption | < 20mA |
| Interface Type | Analog |
| Dimensions | 98mm x 23mm |
| Weight | 15g |
| Operating Temperature | -40°C to 85°C |
| Cable Length | 21cm |
The sensor has a 3-pin interface for easy connection:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin. Connect to 3.3V or 5V. |
| 2 | GND | Ground pin. Connect to the ground of the power source. |
| 3 | AOUT | Analog output pin. Outputs a voltage proportional to the soil moisture level. |
VCC pin to a 3.3V or 5V power source and the GND pin to ground.AOUT pin to an analog input pin of a microcontroller (e.g., Arduino UNO).Below is an example of how to use the sensor with an Arduino UNO to read and display soil moisture levels:
// Capacitive Soil Moisture Sensor v1.2 Example Code
// Manufacturer: DFRobot
// Part ID: SEN0193
// Define the analog pin connected to the sensor
const int sensorPin = A0; // Connect AOUT to A0 on Arduino
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(sensorPin, INPUT); // Set the sensor pin as input
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
float voltage = sensorValue * (5.0 / 1023.0); // Convert the reading to voltage
// Print the sensor value and voltage to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.print(voltage);
Serial.println("V");
delay(1000); // Wait for 1 second before the next reading
}
No Output or Incorrect Readings:
Fluctuating Readings:
Sensor Not Responding:
Q: Can this sensor be used in hydroponics?
A: No, this sensor is designed for soil use and should not be submerged in water.
Q: How do I calibrate the sensor?
A: Measure the sensor's output voltage in completely dry soil and fully saturated soil. Use these values to map the sensor's output to moisture levels in your application.
Q: Is the sensor waterproof?
A: The sensor is water-resistant but not waterproof. Avoid submerging it in water or exposing it to prolonged moisture without protection.
Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor operates at 3.3V and is compatible with 3.3V microcontrollers like the ESP32 or Raspberry Pi Pico.