

The KY-036 is a capacitive soil moisture sensor designed to measure the moisture content in soil. Unlike resistive soil moisture sensors, the KY-036 uses capacitive sensing, which reduces corrosion and increases the lifespan of the sensor. It outputs an analog signal that corresponds to the soil's moisture level, making it ideal for applications requiring precise and reliable moisture detection.








The KY-036 sensor is designed for low-power, high-accuracy soil moisture detection. Below are its key technical details:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Output Type | Analog Voltage |
| Output Voltage Range | 0V (dry soil) to Vcc (wet soil) |
| Current Consumption | < 20mA |
| Sensor Type | Capacitive |
| Dimensions | 98mm x 23mm x 3mm |
| Operating Temperature | -40°C to 85°C |
The KY-036 has three pins for interfacing with microcontrollers or other circuits. The table below describes each pin:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V) |
| 2 | GND | Ground connection |
| 3 | AOUT | Analog output signal proportional to soil moisture |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.AOUT pin to an analog input pin of a microcontroller (e.g., Arduino UNO). The voltage on this pin will vary based on the soil's moisture level.Below is an example of how to use the KY-036 with an Arduino UNO to read soil moisture levels:
// Define the analog pin connected to the KY-036 AOUT pin
const int sensorPin = A0;
// Variable to store the sensor reading
int sensorValue;
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
}
void loop() {
// Read the analog value from the sensor
sensorValue = analogRead(sensorPin);
// Map the sensor value to a percentage (0% = dry, 100% = wet)
int moisturePercent = map(sensorValue, 0, 1023, 0, 100);
// Print the moisture percentage to the Serial Monitor
Serial.print("Soil Moisture: ");
Serial.print(moisturePercent);
Serial.println("%");
// Wait for 1 second before the next reading
delay(1000);
}
No Output or Incorrect Readings:
VCC, GND, and AOUT pins are properly connected.Fluctuating Readings:
VCC and GND to stabilize the power supply.Sensor Corrosion:
Output Always Reads Dry or Wet:
Q: Can the KY-036 be used outdoors?
A: Yes, but it should be protected from direct exposure to water and extreme weather conditions. Use a waterproof enclosure for the electronics if necessary.
Q: How do I interpret the analog output?
A: The output voltage is proportional to the soil's moisture level. A higher voltage indicates wetter soil, while a lower voltage indicates drier soil.
Q: Can I use the KY-036 with a 3.3V microcontroller?
A: Yes, the KY-036 operates at both 3.3V and 5V, making it compatible with a wide range of microcontrollers.
Q: How often should I calibrate the sensor?
A: Calibration should be performed whenever the sensor is used in a new type of soil or after extended periods of use.