KY-028 Digital Temperature Sensor Module – NTC Thermistor with Analog & Digital Outputs for Arduino & ESP32
The KY-028 Digital Temperature Sensor Module is a compact temperature detection module designed to monitor temperature changes using an NTC (Negative Temperature Coefficient) thermistor.
Featuring both analog and digital outputs, the KY-028 allows microcontrollers to measure relative temperature changes and detect when a preset temperature threshold is reached.
The module typically includes an LM393 voltage comparator and an adjustable potentiometer, allowing users to configure the digital switching threshold.
It is ideal for Arduino, ESP32, Raspberry Pi projects with an external ADC, temperature alarms, cooling fan control, robotics, and DIY electronics applications.
Key Features
-
Model: KY-028
-
Sensor Type: NTC Thermistor
-
Measurement Type: Temperature Detection
-
Typical Thermistor Resistance: 10kΩ at 25°C
-
Dual Outputs: Analog (AO) and Digital (DO)
-
Comparator IC: LM393 or Equivalent
-
Operating Voltage: Typically 3.3V–5V DC (Module Dependent)
- Adjustable Digital Temperature Threshold
- Onboard Potentiometer
- Digital Output Indicator LED (Typical)
-
4-Pin Interface: AO, DO, VCC, GND
- Compact PCB Design
- Suitable for Arduino, ESP32, and Other Microcontrollers
Technical Specifications
| Parameter |
Specification |
| Model |
KY-028 |
| Product Type |
Digital Temperature Sensor Module |
| Sensor Element |
NTC Thermistor |
| Typical Thermistor Resistance |
10kΩ at 25°C |
| Typical Thermistor B-Value |
3950K (Variant Dependent) |
| Temperature Range |
Approximately -55°C to +125°C (Thermistor Dependent) |
| Operating Voltage |
Typically 3.3V–5V DC |
| Comparator IC |
LM393 or Compatible |
| Analog Output |
Temperature-Dependent Voltage |
| Digital Output |
HIGH / LOW |
| Digital Threshold |
Adjustable via Potentiometer |
| Number of Pins |
4 |
| Typical Pin Configuration |
AO / DO / + / - |
| Board Dimensions |
Approximately 35 × 15mm (Variant Dependent) |
| Interface |
Analog ADC / Digital GPIO |
| Temperature Measurement |
Requires Software Conversion and Calibration |
Pin Configuration
| Pin |
Function |
| AO |
Analog Temperature Signal |
| DO |
Digital Temperature Threshold Output |
| + |
Power Supply (VCC) |
| - |
Ground (GND) |
How It Works
The KY-028 uses an NTC thermistor whose resistance decreases as temperature increases.
Analog Output (AO)
The analog output provides a voltage that changes with the thermistor's resistance.
A microcontroller can read this voltage through an ADC and estimate the temperature using the thermistor's resistance-temperature characteristics.
Digital Output (DO)
The LM393 comparator compares the temperature-dependent voltage with a reference voltage set by the onboard potentiometer.
When the sensor signal crosses the configured threshold, the digital output changes between HIGH and LOW.
This allows the module to operate as a basic temperature threshold detector without requiring continuous analog measurements.
Arduino Connection Example
| KY-028 |
Arduino Uno |
| AO |
A0 |
| DO |
D2 |
| + |
5V |
| - |
GND |
The Arduino can monitor both the analog temperature signal and the digital threshold state.
Arduino Example Code
const int analogPin = A0;
const int digitalPin = 2;
void setup() {
pinMode(digitalPin, INPUT);
Serial.begin(9600);
}
void loop() {
int analogValue = analogRead(analogPin);
int digitalValue = digitalRead(digitalPin);
Serial.print("Temperature ADC Value: ");
Serial.print(analogValue);
Serial.print(" | Threshold Output: ");
Serial.println(digitalValue);
delay(500);
}
This example displays the analog temperature sensor reading and digital comparator state in the Arduino Serial Monitor.
The Arduino Uno typically produces ADC readings between 0 and 1023.
To display temperature in degrees Celsius, the analog reading must be converted using the actual thermistor specifications and voltage-divider configuration.
Applications
- Temperature Monitoring Systems
- Temperature Threshold Alarms
- Arduino and ESP32 Projects
- Raspberry Pi Temperature Monitoring
- Cooling Fan Control
- Overtemperature Warning Systems
- Robotics and Automation
- Smart Home Projects
- Environmental Monitoring
- Educational STEM Projects
- DIY Electronics and Prototyping
Important Notes
-
The KY-028 is based on an analog NTC thermistor with a digital comparator output. It is not a digital temperature sensor that directly transmits temperature values.
- The digital output indicates whether the configured threshold has been crossed; it does not provide a numerical temperature reading.
- The onboard potentiometer adjusts the comparator threshold, not the thermistor's sensitivity.
- Accurate temperature measurements require the correct thermistor parameters, resistance calculation, and calibration.
- The stated temperature range describes typical thermistor capability and does not guarantee the operating range of the complete assembled module.
- The module is not waterproof and should not be immersed in liquids.
- Raspberry Pi boards require an external ADC, such as the MCP3008 or ADS1115, to read the analog output.
-
For ESP32 and Raspberry Pi, ensure the analog and digital output voltages do not exceed 3.3V.
- Powering the module at 3.3V may be suitable for certain versions, but comparator operation and output behavior should be verified.
- The digital output polarity depends on the module's comparator circuit.
- Verify the supplied module's pin labels, thermistor characteristics, and operating voltage before wiring.
Package Includes
1 × KY-028 Digital Temperature Sensor Module