

The Soil RK520-01 is a robust soil moisture sensor designed to gauge the volumetric water content in soil. This sensor is an indispensable tool for agriculture, landscaping, and environmental science, providing real-time data to optimize irrigation schedules, conserve water, and monitor plant health.








| Pin Number | Name | Description |
|---|---|---|
| 1 | VCC | Power supply (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | AOUT | Analog output voltage |
| 4 | DOUT | Digital output (threshold set by onboard potentiometer) |
// Soil RK520-01 Soil Moisture Sensor Example for Arduino UNO
const int MOISTURE_SENSOR_PIN = A0; // Analog input pin connected to AOUT
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}
void loop() {
int sensorValue = analogRead(MOISTURE_SENSOR_PIN); // Read the soil moisture value
float moisturePercent = (sensorValue / 1023.0) * 100; // Convert to percentage
Serial.print("Soil Moisture Level: ");
Serial.print(moisturePercent);
Serial.println("%");
delay(1000); // Wait for a second before reading again
}
Q: Can the sensor be left in the soil permanently? A: It is not recommended to leave the sensor in the soil permanently as prolonged exposure to moisture can lead to corrosion.
Q: Is the sensor waterproof? A: The probe is water-resistant, but the electronic components are not waterproof. Care should be taken to prevent exposure to water.
Q: How do I clean the sensor? A: Gently clean the probe with water and a soft brush. Do not use any harsh chemicals or abrasives.
Q: Can the sensor be used with any microcontroller? A: Yes, the sensor can be used with any microcontroller that has analog input capabilities.