

The Capacitive Soil Moisture Sensor v1.2 is a reliable and efficient tool for measuring the volumetric water content in soil. Unlike resistive soil moisture sensors, this sensor uses changes in capacitance to detect soil moisture levels, making it less prone to corrosion and more durable over time. It outputs an analog voltage that corresponds to the moisture level, which can be easily read by microcontrollers such as Arduino or Raspberry Pi.








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 signal) |
| Current Consumption | < 20mA |
| Interface Type | Analog |
| Dimensions | 98mm x 23mm |
| Operating Temperature | -40°C to 85°C |
| Moisture Detection Range | 0% - 100% (relative soil moisture) |
The Capacitive Soil Moisture Sensor v1.2 has three pins:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin. Connect to 3.3V or 5V depending on your microcontroller. |
| 2 | GND | Ground pin. Connect to the ground of your circuit. |
| 3 | AOUT | Analog output pin. Outputs a voltage proportional to the soil moisture level. |
Wiring the Sensor:
Power Requirements:
Reading the Output:
Below is an example of how to use the Capacitive Soil Moisture Sensor v1.2 with an Arduino UNO:
// Define the analog pin connected to the sensor
const int sensorPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(sensorPin, INPUT); // Set the sensor pin as an 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 raw sensor value and voltage to the Serial Monitor
Serial.print("Sensor Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.println(voltage);
delay(1000); // Wait for 1 second before taking the next reading
}
analogRead() function reads the sensor's output and returns a value between 0 and 1023.No Output or Incorrect Readings:
Fluctuating or Noisy Readings:
Sensor Not Responding:
Inconsistent Readings in Different Soils:
Q1: Can this sensor be used outdoors?
A1: Yes, but it is recommended to protect the sensor from prolonged exposure to water and extreme environmental conditions to extend its lifespan.
Q2: How do I interpret the sensor's output?
A2: The sensor outputs an analog voltage. A higher voltage indicates drier soil, while a lower voltage indicates wetter soil. Calibrate the sensor for precise measurements.
Q3: Can I use this sensor with a 3.3V microcontroller?
A3: Yes, the sensor operates within a voltage range of 3.3V to 5.5V, making it compatible with 3.3V systems.
Q4: How deep should I insert the sensor into the soil?
A4: Insert the sensor vertically, ensuring the sensing area is fully covered by soil for accurate readings.
By following this documentation, you can effectively integrate the Capacitive Soil Moisture Sensor v1.2 into your projects and achieve reliable soil moisture monitoring.