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

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

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

Introduction

The KY-028 is a temperature sensor module designed for temperature monitoring applications. It features the LM35 temperature sensor, which provides an analog output directly proportional to the temperature in degrees Celsius. The module also includes a digital output that can be triggered when the temperature exceeds a user-defined threshold, making it versatile for a wide range of projects.

Explore Projects Built with KY-028

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Security System with RFID and Laser Tripwire
Image of CPE doorlock system: A project utilizing KY-028 in a practical application
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Security System with RFID and Laser Intrusion Detection
Image of CPE doorlock system upgrade: A project utilizing KY-028 in a practical application
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
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-028 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
Arduino Nano Joystick-Controlled Bluetooth Module with Battery Power
Image of padelpro transmitter: A project utilizing KY-028 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

Explore Projects Built with KY-028

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 CPE doorlock system: A project utilizing KY-028 in a practical application
ESP32-Based Security System with RFID and Laser Tripwire
This circuit is designed for a comprehensive security and access control system with motion detection, access via RFID, and a break-beam sensor. It includes a solenoid lock controlled by a relay, visual and audible alerts, and a robust power management system with solar and battery backup to ensure uninterrupted operation.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CPE doorlock system upgrade: A project utilizing KY-028 in a practical application
ESP32-Based Security System with RFID and Laser Intrusion Detection
This circuit is a security and access control system featuring motion detection, laser beam-break sensing, and RFID scanning, interfaced with a keypad and visual/audible indicators, powered by a solar-charged battery, and capable of controlling an electric lock via a relay.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of apv circuit 1: A project utilizing KY-028 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 padelpro transmitter: A project utilizing KY-028 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

Common Applications and Use Cases

  • Environmental temperature monitoring
  • Home automation systems
  • Industrial temperature control
  • Educational projects and prototyping
  • Arduino and microcontroller-based projects

Technical Specifications

The KY-028 module is built around the LM35 temperature sensor and includes additional circuitry for digital threshold adjustment. Below are the key technical details:

Parameter Value
Operating Voltage 3.3V - 5V
Analog Output Voltage 10mV/°C (from LM35 sensor)
Digital Output High/Low (based on threshold)
Temperature Range -55°C to +150°C
Accuracy ±0.5°C (at 25°C)
Dimensions 32mm x 14mm x 8mm

Pin Configuration and Descriptions

The KY-028 module has four pins, as described in the table below:

Pin Name Description
1 VCC Power supply pin (3.3V to 5V)
2 GND Ground pin
3 DO (Digital Out) Digital output pin, goes HIGH when temperature exceeds the set threshold
4 AO (Analog Out) Analog output pin, provides a voltage proportional to the measured temperature

Usage Instructions

The KY-028 module is easy to use and can be connected to microcontrollers like the Arduino UNO for temperature monitoring. Below are the steps to use the module:

Connecting the KY-028 to an Arduino UNO

  1. Power the Module: Connect the VCC pin to the 5V pin on the Arduino and the GND pin to the Arduino's GND.
  2. Read Analog Temperature: Connect the AO pin to an analog input pin on the Arduino (e.g., A0).
  3. Set Digital Threshold: Use the onboard potentiometer to adjust the temperature threshold. The DO pin will output HIGH when the temperature exceeds this threshold. Connect DO to a digital input pin on the Arduino (e.g., D2).

Sample Arduino Code

The following code demonstrates how to read the analog temperature value from the KY-028 and display it in the Serial Monitor:

// KY-028 Temperature Sensor Example
// Reads analog temperature data and displays it in the Serial Monitor

const int analogPin = A0; // Pin connected to AO (Analog Out)
float voltage;            // Variable to store the sensor voltage
float temperature;        // Variable to store the calculated temperature

void setup() {
  Serial.begin(9600); // Initialize Serial Monitor at 9600 baud
}

void loop() {
  int sensorValue = analogRead(analogPin); // Read analog value from AO pin
  voltage = sensorValue * (5.0 / 1023.0);  // Convert to voltage (5V reference)
  temperature = voltage * 100.0;          // Convert voltage to temperature (10mV/°C)

  // Print temperature to Serial Monitor
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");

  delay(1000); // Wait 1 second before next reading
}

Important Considerations and Best Practices

  • Power Supply: Ensure the module is powered within its operating voltage range (3.3V to 5V).
  • Threshold Adjustment: Use the onboard potentiometer to set the desired temperature threshold for the digital output.
  • Analog Accuracy: For precise temperature readings, use the analog output and calibrate the sensor if necessary.
  • Environmental Factors: Avoid placing the module in environments with high humidity or direct exposure to liquids.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output from the Module

    • Ensure the module is powered correctly (check VCC and GND connections).
    • Verify that the Arduino or microcontroller is reading the correct pins.
  2. Incorrect Temperature Readings

    • Check the reference voltage used in the Arduino code (default is 5V).
    • Ensure the sensor is not exposed to extreme environmental conditions.
  3. Digital Output Not Triggering

    • Adjust the potentiometer to set the correct temperature threshold.
    • Verify the DO pin connection to the microcontroller.
  4. Fluctuating Analog Readings

    • Use a capacitor (e.g., 0.1µF) between the AO pin and GND to stabilize the signal.

FAQs

Q: Can the KY-028 measure negative temperatures?
A: Yes, the LM35 sensor on the KY-028 can measure temperatures as low as -55°C. However, the analog output voltage will be negative for temperatures below 0°C, which may require additional circuitry to read correctly.

Q: How do I calibrate the KY-028 for accurate readings?
A: Compare the sensor's output with a known accurate thermometer and adjust the calculations in your code accordingly.

Q: Can I use the KY-028 with a 3.3V microcontroller?
A: Yes, the KY-028 can operate at 3.3V. However, ensure that the analog reference voltage in your code matches the supply voltage for accurate readings.