ESP32 KY-015 Temperature and Humidity Sensor Module

KY-015 Temperature and Humidity Sensor Module image

KY-015

Protocol: 1-Wire

Overview

The KY-015 is a temperature and humidity sensor module based on the DHT11 sensor. It provides digital output for temperature and humidity measurements, making it ideal for environmental monitoring applications.

About KY-015 Temperature and Humidity Sensor Module

The KY-015 Temperature and Humidity Sensor Module integrates the DHT11 sensor, capable of measuring temperatures from 0°C to 50°C with an accuracy of ±2°C, and relative humidity levels from 20% to 90% with an accuracy of ±5%. It communicates using a single-wire digital protocol, making it straightforward to interface with microcontrollers like Arduino and ESP32. Due to its low sampling rate, the sensor provides new readings approximately every two seconds, making it suitable for applications such as climate monitoring, greenhouse management, and environmental data logging.

Where to Buy

KY-015 Temperature and Humidity Sensor Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 3.3V - 5V
Temperature Range 0°C to 50°C
Temperature Accuracy ±2°C
Humidity Range 20% to 90% RH
Humidity Accuracy ±5% RH
Sampling Rate Once every 2 seconds

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin (-): Ground (GND).
  • Pin (middle): VCC (3.3V to 5V).
  • Pin (S): Digital signal output.

Wiring with ESP32

  • KY-015 Pin (-): Connect to ESP32 GND.
  • KY-015 Pin (middle): Connect to ESP32 3.3V or 5V.
  • KY-015 Pin (S): Connect to a GPIO pin on ESP32 (e.g., GPIO4).

Troubleshooting Guide

Common Issues

❌ No Data Output

⚠️ Incorrect or Fluctuating Readings

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-015 Temperature and Humidity Sensor Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.