ESP32 KY-028 Digital Temperature Sensor Module

KY-028 Digital Temperature Sensor Module image

KY-028

Protocol: Analog,Digital

Overview

The KY-028 is a digital temperature sensor module equipped with an NTC thermistor. It offers both analog and digital outputs, with an adjustable threshold via an onboard potentiometer, making it ideal for temperature monitoring and control applications.

About KY-028 Digital Temperature Sensor Module

The KY-028 Digital Temperature Sensor Module features an NTC thermistor for temperature measurement. It provides both analog and digital outputs, allowing for precise temperature readings and threshold-based alerts. The module includes an onboard potentiometer to adjust the temperature threshold for the digital output, making it suitable for various temperature monitoring applications.

Where to Buy

KY-028 Digital Temperature 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 to 5.5V
Temperature Measurement Range -55°C to +125°C
Measurement Accuracy ±0.5°C
Dimensions 36 x 15 x 14 mm
Weight 2 g

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.

  • GND: Connects to ground.
  • +V: Connects to 3.3V or 5V power supply.
  • A0: Analog output providing a voltage proportional to the temperature.
  • D0: Digital output that goes high when the temperature exceeds the set threshold.

Wiring with ESP32

  • GND: Connect to ESP32 GND.
  • +V: Connect to ESP32 3.3V or 5V.
  • A0: Connect to an analog input pin on ESP32 (e.g., GPIO36).
  • D0: Connect to a digital input pin on ESP32 (e.g., GPIO17).

Troubleshooting Guide

Common Issues

❌ No Analog Output

❌ Digital Output Not Triggering

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-028 Digital 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.