The Capacitive Soil Moisture Sensor V1.2 is an electronic device that measures the volumetric water content in soil. Unlike resistive soil moisture sensors, capacitive sensing is not prone to corrosion, making it a more durable choice for long-term soil moisture detection. This sensor is commonly used in gardening, agriculture, and landscaping to monitor soil moisture levels and to automate watering systems.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V to 5.5V) |
2 | GND | Ground connection |
3 | AOUT | Analog output signal |
// Capacitive Soil Moisture Sensor V1.2 - Arduino Example
const int sensorPin = A0; // Analog input pin connected to the sensor
int sensorValue = 0; // Variable to store the sensor value
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
sensorValue = analogRead(sensorPin); // Read the sensor value
Serial.print("Moisture Level: ");
Serial.println(sensorValue); // Print the sensor value to the serial monitor
delay(1000); // Wait for 1 second before reading the value again
}
Q: Can the sensor be left in the soil permanently? A: While the sensor is designed for use in soil, prolonged exposure to extremely wet conditions may still affect its lifespan. It is recommended to remove the sensor when not in use.
Q: Is the sensor waterproof? A: The sensor's probe is waterproof, but the electronic components and connections are not. Avoid exposing the top part of the sensor to water.
Q: How do I interpret the sensor's readings? A: The sensor's analog output provides a value between 0 and 1023 (for a 10-bit ADC like that on the Arduino). Lower values typically indicate more moisture in the soil. Calibration is necessary to correlate these values to actual moisture levels.
Q: Can the sensor be used with a 3.3V system? A: Yes, the sensor can operate at 3.3V, but the output range will be lower, and calibration will be necessary for accurate readings.