

The SEN0240 is a capacitive soil moisture sensor designed to measure the volumetric water content in soil. Unlike resistive soil moisture sensors, the SEN0240 is corrosion-resistant, ensuring long-term durability and reliability. It outputs an analog voltage signal that corresponds to the soil's moisture level, making it easy to interface with microcontrollers and other analog input devices.








The SEN0240 is designed for ease of use and compatibility with a wide range of microcontrollers. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5.5V |
| Output Signal | Analog (0-3V) |
| Current Consumption | < 20mA |
| Measurement Range | 0% - 100% soil moisture |
| Interface Type | Analog |
| Operating Temperature | -40°C to 85°C |
| Dimensions | 98mm x 23mm |
The SEN0240 has a simple 3-pin interface:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5.5V). Connect to the 3.3V or 5V pin of your microcontroller. |
| 2 | GND | Ground. Connect to the GND pin of your microcontroller. |
| 3 | AOUT | Analog output. Provides a voltage signal proportional to the soil moisture level. |
Below is an example of how to use the SEN0240 with an Arduino UNO to read soil moisture levels:
// Define the analog pin connected to the sensor's AOUT pin
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 value to voltage
// Map the voltage to a percentage (0% = dry, 100% = wet)
int moisturePercent = map(sensorValue, 0, 1023, 0, 100);
// Print the results to the Serial Monitor
Serial.print("Soil Moisture: ");
Serial.print(moisturePercent);
Serial.println("%");
delay(1000); // Wait for 1 second before taking the next reading
}
No Output or Incorrect Readings
Fluctuating or Noisy Output
Sensor Not Responding
Output Voltage Does Not Match Soil Moisture
Q: Can the SEN0240 be used with a 3.3V microcontroller like the ESP32?
A: Yes, the SEN0240 operates within a voltage range of 3.3V to 5.5V, making it compatible with 3.3V microcontrollers.
Q: How deep should the sensor be inserted into the soil?
A: Insert the sensor fully into the soil, ensuring the capacitive plates are covered for accurate readings.
Q: Can the SEN0240 measure soil moisture in sandy or clay soils?
A: Yes, but the sensor may require calibration for different soil types to ensure accurate measurements.
Q: Is the SEN0240 suitable for outdoor use?
A: The SEN0240 is water-resistant but not waterproof. Protect the sensor and its connections from prolonged exposure to water and harsh weather conditions.