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

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

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

Introduction

The KY-025 is a temperature and humidity sensor module manufactured by ESP32 with the part ID 13. It integrates the DHT11 sensor to provide accurate digital output for temperature and humidity measurements. This module is widely used in environmental monitoring, weather stations, and home automation systems due to its simplicity and reliability.

Explore Projects Built with KY-025

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-025 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
Arduino Mega 2560 Bluetooth-Controlled Flame Detection System with Servo Actuation
Image of apv circuit 1: A project utilizing KY-025 in a practical application
This circuit uses an Arduino Mega 2560 to monitor four KY-026 flame sensors and control four micro servo motors. The HC-05 Bluetooth module allows for wireless communication, enabling remote monitoring and control of the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wireless Joystick-Controlled Interface with Arduino Nano and NRF24L01
Image of Transmitter 11: A project utilizing KY-025 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
Arduino UNO Controlled Joystick Interface with LCD Feedback and Audio Alert
Image of 우주게임: A project utilizing KY-025 in a practical application
This circuit features an Arduino UNO microcontroller connected to a KY-023 Dual Axis Joystick Module, an I2C LCD 16x2 Screen, a Piezo Speaker, and a Pushbutton. The joystick provides two analog inputs to the Arduino for X and Y axis control, while the pushbutton is connected to a digital input for user interaction. The LCD screen displays information via I2C communication, and the Piezo Speaker is driven by a digital output from the Arduino for audio feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-025

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-025 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 apv circuit 1: A project utilizing KY-025 in a practical application
Arduino Mega 2560 Bluetooth-Controlled Flame Detection System with Servo Actuation
This circuit uses an Arduino Mega 2560 to monitor four KY-026 flame sensors and control four micro servo motors. The HC-05 Bluetooth module allows for wireless communication, enabling remote monitoring and control of the system.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Transmitter 11: A project utilizing KY-025 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
Image of 우주게임: A project utilizing KY-025 in a practical application
Arduino UNO Controlled Joystick Interface with LCD Feedback and Audio Alert
This circuit features an Arduino UNO microcontroller connected to a KY-023 Dual Axis Joystick Module, an I2C LCD 16x2 Screen, a Piezo Speaker, and a Pushbutton. The joystick provides two analog inputs to the Arduino for X and Y axis control, while the pushbutton is connected to a digital input for user interaction. The LCD screen displays information via I2C communication, and the Piezo Speaker is driven by a digital output from the Arduino for audio feedback.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Weather monitoring systems
  • Home automation for climate control
  • Greenhouse environmental monitoring
  • Industrial temperature and humidity tracking
  • IoT-based environmental sensing projects

Technical Specifications

The KY-025 module is designed for ease of use and compatibility with microcontrollers like Arduino and ESP32. Below are its key technical details:

Key Technical Details

Parameter Specification
Operating Voltage 3.3V - 5V
Operating Current 0.5mA (typical)
Temperature Range 0°C to 50°C
Temperature Accuracy ±2°C
Humidity Range 20% to 90% RH
Humidity Accuracy ±5% RH
Output Type Digital
Communication Protocol Single-wire (proprietary)
Dimensions 28mm x 12mm x 10mm

Pin Configuration and Descriptions

The KY-025 module has three pins for easy interfacing with microcontrollers. Below is the pinout:

Pin Number Pin Name Description
1 VCC Power supply pin (3.3V - 5V)
2 GND Ground pin
3 OUT Digital output pin for temperature and humidity

Usage Instructions

The KY-025 module is straightforward to use in a circuit. Follow the steps below to integrate it into your project:

Connecting the KY-025 to a Microcontroller

  1. Power the Module: Connect the VCC pin to the 3.3V or 5V power supply of your microcontroller and the GND pin to the ground.
  2. Connect the Output Pin: Attach the OUT pin to a digital input pin on your microcontroller.
  3. Use a Pull-Up Resistor: The OUT pin requires a pull-up resistor (typically 10kΩ) to function correctly. Connect the resistor between the OUT pin and the VCC pin.

Example Code for Arduino UNO

Below is an example Arduino sketch to read temperature and humidity data from the KY-025 module:

#include <DHT.h>

// Define the pin connected to the KY-025 OUT pin
#define DHTPIN 2

// Define the DHT sensor type (DHT11 for KY-025)
#define DHTTYPE DHT11

// Initialize the DHT sensor
DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600); // Start serial communication at 9600 baud
  dht.begin();        // Initialize the DHT sensor
  Serial.println("KY-025 Temperature and Humidity Sensor Test");
}

void loop() {
  delay(2000); // Wait 2 seconds between readings

  // Read temperature and humidity
  float humidity = dht.readHumidity();
  float temperature = dht.readTemperature();

  // Check if the readings are valid
  if (isnan(humidity) || isnan(temperature)) {
    Serial.println("Failed to read from KY-025 sensor!");
    return;
  }

  // Print the readings to the Serial Monitor
  Serial.print("Humidity: ");
  Serial.print(humidity);
  Serial.print(" %\t");
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");
}

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered within its operating voltage range (3.3V - 5V).
  • Pull-Up Resistor: Always use a pull-up resistor on the OUT pin to ensure proper communication.
  • Environmental Factors: Avoid placing the sensor in environments with condensation or extreme temperatures, as this may affect accuracy.
  • Data Refresh Rate: The DHT11 sensor has a refresh rate of 1Hz (1 reading per second). Avoid polling the sensor more frequently.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output or Incorrect Readings:

    • Ensure the OUT pin is connected to the correct digital input pin on the microcontroller.
    • Verify the pull-up resistor is properly connected between the OUT and VCC pins.
    • Check the power supply voltage (3.3V - 5V) to ensure it is within the operating range.
  2. "Failed to read from KY-025 sensor!" Error:

    • This error occurs when the sensor does not respond. Double-check the wiring and ensure the sensor is not damaged.
    • Ensure the DHT library is correctly installed in your Arduino IDE.
  3. Inconsistent Readings:

    • Place the sensor in a stable environment to avoid rapid changes in temperature or humidity.
    • Ensure the sensor is not exposed to direct sunlight or strong airflow, as these can cause fluctuations.

FAQs

Q: Can the KY-025 module be used outdoors?
A: The KY-025 is not waterproof or weatherproof. For outdoor use, it must be placed in a protective enclosure to shield it from moisture and extreme conditions.

Q: What is the maximum cable length for the KY-025?
A: The maximum cable length depends on the pull-up resistor value and the environment. Typically, a cable length of up to 20 meters is supported with a 10kΩ pull-up resistor.

Q: Can the KY-025 be used with a 3.3V microcontroller like ESP32?
A: Yes, the KY-025 is compatible with 3.3V microcontrollers. Ensure the VCC pin is connected to a 3.3V power source.

By following this documentation, you can effectively integrate the KY-025 module into your projects for reliable temperature and humidity monitoring.