Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use KY-036: Examples, Pinouts, and Specs

Image of KY-036
Cirkit Designer LogoDesign with KY-036 in Cirkit Designer

Introduction

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 sensor's lifespan. It outputs an analog signal that corresponds to the soil's moisture level, making it ideal for applications requiring precise and reliable moisture detection.

Explore Projects Built with KY-036

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing KY-036 in a practical application
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Security System with RFID and Laser Tripwire
Image of CPE doorlock system: A project utilizing KY-036 in a practical application
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Security System with RFID and Laser Intrusion Detection
Image of CPE doorlock system upgrade: A project utilizing KY-036 in a practical application
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing KY-036 in a practical application
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-036

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of padelpro transmitter: A project utilizing KY-036 in a practical application
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
This circuit is a wireless joystick controller that uses an Arduino Nano to read analog signals from a KY-023 Dual Axis Joystick Module and transmits the data via an HC-05 Bluetooth Module. The system is powered by a 18650 Li-Ion battery with a rocker switch for power control.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CPE doorlock system: A project utilizing KY-036 in a practical application
ESP32-Based Security System with RFID and Laser Tripwire
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CPE doorlock system upgrade: A project utilizing KY-036 in a practical application
ESP32-Based Security System with RFID and Laser Intrusion Detection
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Transmitter 11: A project utilizing KY-036 in a practical application
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
This circuit features an Arduino Nano interfaced with a KY-023 Dual Axis Joystick Module for analog input, and an NRF24L01 module for wireless communication. The joystick provides x and y-axis control signals to the Arduino's analog inputs and a switch signal to a digital input, while the NRF24L01 enables the Arduino to communicate with other devices wirelessly. The 2x 18650 batteries supply power to the Arduino, which in turn powers the joystick and the NRF24L01 module.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Automated irrigation systems
  • Smart gardening and plant care
  • Agricultural monitoring
  • Environmental sensing and research
  • DIY electronics and IoT projects

Technical Specifications

  • Manufacturer: ESP32
  • Manufacturer Part ID: 22
  • Operating Voltage: 3.3V to 5V
  • Output Type: Analog voltage signal
  • Current Consumption: < 20mA
  • Moisture Detection Range: 0% (dry) to 100% (wet)
  • Dimensions: 98mm x 23mm x 3mm
  • Interface: 3-pin header (VCC, GND, AOUT)

Pin Configuration and Descriptions

Pin Name Pin Type Description
VCC Power Input Connect to 3.3V or 5V power supply.
GND Ground Connect to the ground of the circuit.
AOUT Analog Output Outputs an analog voltage proportional
to the soil moisture level.

Usage Instructions

How to Use the KY-036 in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.
  2. Read the Output: Connect the AOUT pin to an analog input pin of a microcontroller (e.g., Arduino UNO or ESP32). The voltage on AOUT will vary based on the soil's moisture level.
  3. Insert the Sensor: Place the sensor's probe into the soil. Ensure the sensor is inserted vertically and fully into the soil for accurate readings.

Important Considerations and Best Practices

  • Avoid Water Contact with Electronics: Only the probe should be in contact with the soil. Ensure the electronic components remain dry.
  • Calibration: For accurate results, calibrate the sensor by measuring the output voltage in dry and fully saturated soil.
  • Power Supply: Use a stable power source to avoid fluctuations in the output signal.
  • Signal Filtering: Add a capacitor (e.g., 0.1µF) between the AOUT and GND pins to reduce noise in the analog signal.

Example Code for Arduino UNO

// KY-036 Soil Moisture Sensor Example Code
// Reads the analog output of the KY-036 and prints the moisture level to the Serial Monitor.

const int sensorPin = A0; // Connect AOUT pin of KY-036 to A0 on Arduino
int sensorValue = 0;      // Variable to store the sensor reading

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
  pinMode(sensorPin, INPUT); // Set the sensor pin as input
}

void loop() {
  sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  float moistureLevel = map(sensorValue, 0, 1023, 0, 100); 
  // Map the sensor value to a percentage (0% to 100%)
  
  Serial.print("Soil Moisture Level: ");
  Serial.print(moistureLevel);
  Serial.println("%");
  
  delay(1000); // Wait for 1 second before taking the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings

    • Cause: Loose or incorrect wiring.
    • Solution: Double-check the connections to ensure VCC, GND, and AOUT are properly connected.
  2. Fluctuating or Noisy Readings

    • Cause: Electrical noise or unstable power supply.
    • Solution: Add a decoupling capacitor (e.g., 0.1µF) between AOUT and GND to stabilize the signal.
  3. Sensor Not Responding in Wet Soil

    • Cause: Sensor probe is damaged or corroded.
    • Solution: Inspect the probe for physical damage and replace if necessary.
  4. Output Voltage Does Not Change

    • Cause: Soil is too dry or sensor is not fully inserted.
    • Solution: Ensure the sensor is properly inserted into the soil and test with moist soil.

FAQs

  • Q: Can the KY-036 be used outdoors?
    A: Yes, but ensure the electronic components are protected from water and weather conditions.

  • Q: How do I calibrate the sensor?
    A: Measure the output voltage in completely dry soil and fully saturated soil. Use these values to map the sensor's output to a percentage scale.

  • Q: Can I use the KY-036 with a 3.3V microcontroller like ESP32?
    A: Yes, the KY-036 is compatible with both 3.3V and 5V systems.

  • Q: How deep should I insert the sensor into the soil?
    A: Insert the sensor fully into the soil for accurate readings, ensuring the probe is in contact with the soil at all points.