ESP32 KY-013 Analog Temperature Sensor Module

KY-013 Analog Temperature Sensor Module image

KY-013

Protocol: Analog

Overview

The KY-013 is an analog temperature sensor module utilizing an NTC thermistor. It provides temperature measurements in the range of -55°C to +125°C with an accuracy of ±0.5°C. Suitable for various temperature monitoring applications.

About KY-013 Analog Temperature Sensor Module

The KY-013 Analog Temperature Sensor Module features an NTC thermistor capable of measuring temperatures ranging from -55°C to +125°C. As a negative temperature coefficient (NTC) thermistor, its resistance decreases with increasing temperature. This characteristic allows for temperature determination by measuring the voltage across the thermistor when used in a voltage divider configuration. The module operates at voltages between 3.3V and 5V, making it compatible with various microcontrollers, including Arduino and ESP32. It’s commonly used in applications such as climate control systems, environmental monitoring, and other temperature-dependent processes.

Where to Buy

KY-013 Analog Temperature Sensor Module

Starting from

1$ 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 -55°C to +125°C
Accuracy ±0.5°C
Thermistor Resistance 10 kΩ at 25°C
B-Value 3950K
Dimensions 19 x 15.5 x 7 mm

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): Analog signal output.

Wiring with ESP32

  • KY-013 Pin (-): Connect to ESP32 GND.
  • KY-013 Pin (middle): Connect to ESP32 3.3V or 5V.
  • KY-013 Pin (S): Connect to an analog-capable GPIO pin on ESP32 (e.g., GPIO36).

Troubleshooting Guide

Common Issues

🌡️ Incorrect Temperature Readings

❌ No Output from Sensor

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-013 Analog Temperature 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.