

The SEN0475 is a capacitive soil moisture sensor manufactured by DFRobot. It is designed to measure the volumetric water content in soil, providing an analog output that corresponds to the soil's moisture level. Unlike resistive soil moisture sensors, the SEN0475 is corrosion-resistant, ensuring long-term durability and reliability. This makes it an excellent choice for applications in agriculture, gardening, and environmental monitoring.








The SEN0475 is a robust and efficient sensor with the following key specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5.5V |
| Output Signal | Analog voltage (0-3.0V typical) |
| Current Consumption | < 20mA |
| Measurement Range | 0% - 100% soil moisture |
| Interface Type | Analog |
| Operating Temperature | -40°C to 85°C |
| Dimensions | 98mm x 23mm |
| Weight | 15g |
The SEN0475 has a simple 3-pin interface for easy integration into circuits:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V - 5.5V) |
| 2 | GND | Ground connection |
| 3 | AOUT | Analog output signal proportional to soil moisture |
VCC pin to a 3.3V or 5V power source.GND pin to the ground of your circuit.AOUT pin to an analog input pin on your microcontroller (e.g., Arduino).Below is an example code snippet to read the SEN0475's analog output using an Arduino UNO:
// Define the analog pin connected to the SEN0475 sensor
const int sensorPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
float voltage = sensorValue * (5.0 / 1023.0); // Convert the analog value to voltage
// Map the voltage to a moisture percentage (calibration may be required)
int moisturePercent = map(sensorValue, 0, 1023, 0, 100);
// Print the sensor readings to the Serial Monitor
Serial.print("Analog Value: ");
Serial.print(sensorValue);
Serial.print(" | Voltage: ");
Serial.print(voltage);
Serial.print("V | Moisture: ");
Serial.print(moisturePercent);
Serial.println("%");
delay(1000); // Wait for 1 second before the next reading
}
map() function is used to convert the sensor's analog reading to a percentage. Adjust the mapping range based on your calibration.No Output or Incorrect Readings
VCC, GND, and AOUT pins are properly connected.Fluctuating Readings
VCC and GND to stabilize the power supply.Sensor Not Responding
Inaccurate Moisture Levels
Q: Can the SEN0475 be used outdoors?
A: Yes, the SEN0475 is designed for outdoor use. However, ensure the connections are protected from water and environmental exposure.
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 adjust the mapping range in your code.
Q: Is the SEN0475 compatible with 3.3V microcontrollers?
A: Yes, the SEN0475 operates at 3.3V to 5.5V, making it compatible with both 3.3V and 5V systems.
Q: Can I use multiple SEN0475 sensors in one project?
A: Yes, you can connect multiple sensors to different analog input pins on your microcontroller. Ensure each sensor has a stable power supply.
By following this documentation, you can effectively integrate the SEN0475 into your projects for reliable soil moisture monitoring.