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

How to Use KY-028 Sensor de Temperatura Digital: Examples, Pinouts, and Specs

Image of KY-028 Sensor de Temperatura Digital
Cirkit Designer LogoDesign with KY-028 Sensor de Temperatura Digital in Cirkit Designer

Introduction

The KY-028 Sensor de Temperatura Digital is a versatile temperature sensor module designed for accurate temperature monitoring. Manufactured by Arduino (Part ID: jhj), this module typically uses LM35 or similar sensor technology to provide reliable temperature readings. It outputs data in both analog and digital formats, making it easy to interface with microcontrollers such as the Arduino UNO.

Explore Projects Built with KY-028 Sensor de Temperatura Digital

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
Image of Pulsefex: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Pro Mini-Based Battery-Powered Laser Emitter with Temperature Sensing and OLED Display
Image of temp gun: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
This circuit is a sensor and display system powered by a 9V battery, featuring an Arduino Pro Mini microcontroller. It includes a momentary switch to control power, a KY-008 laser emitter, an MLX90614 temperature sensor, and an OLED display for output. The system is designed to read temperature data and display it on the OLED screen, with the laser emitter potentially used for targeting or indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ESP32-CAM Based Smart Fire and Gas Detection System with Battery Power
Image of HANDAAAA: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
This circuit is a multi-sensor monitoring system that uses an Arduino UNO to collect data from a KY-026 flame sensor, an MQ-2 gas sensor, and a DHT22 temperature and humidity sensor. The ESP32-CAM module is integrated for potential image or video capture, and the entire system is powered by two 18650 Li-ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display
Image of outline robotics: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
This circuit is a multi-sensor monitoring system using an ESP32 microcontroller. It integrates various sensors including flame sensors, gas sensors (MQ-2 and MQ-7), a temperature and humidity sensor, and an OLED display for real-time data visualization. Additionally, it includes a relay module for controlling external devices and a GSM module for remote communication.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with KY-028 Sensor de Temperatura Digital

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 Pulsefex: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
Battery-Powered Health Monitoring System with Nucleo WB55RG and OLED Display
This circuit is a multi-sensor data acquisition system that uses a Nucleo WB55RG microcontroller to interface with a digital temperature sensor (TMP102), a pulse oximeter and heart-rate sensor (MAX30102), and a 0.96" OLED display via I2C. Additionally, it includes a Sim800l module for GSM communication, powered by a 3.7V LiPo battery.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of temp gun: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
Arduino Pro Mini-Based Battery-Powered Laser Emitter with Temperature Sensing and OLED Display
This circuit is a sensor and display system powered by a 9V battery, featuring an Arduino Pro Mini microcontroller. It includes a momentary switch to control power, a KY-008 laser emitter, an MLX90614 temperature sensor, and an OLED display for output. The system is designed to read temperature data and display it on the OLED screen, with the laser emitter potentially used for targeting or indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of HANDAAAA: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
Arduino UNO and ESP32-CAM Based Smart Fire and Gas Detection System with Battery Power
This circuit is a multi-sensor monitoring system that uses an Arduino UNO to collect data from a KY-026 flame sensor, an MQ-2 gas sensor, and a DHT22 temperature and humidity sensor. The ESP32-CAM module is integrated for potential image or video capture, and the entire system is powered by two 18650 Li-ion batteries.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of outline robotics: A project utilizing KY-028 Sensor de Temperatura Digital in a practical application
ESP32-Based Smart Fire and Gas Detection System with GSM and OLED Display
This circuit is a multi-sensor monitoring system using an ESP32 microcontroller. It integrates various sensors including flame sensors, gas sensors (MQ-2 and MQ-7), a temperature and humidity sensor, and an OLED display for real-time data visualization. Additionally, it includes a relay module for controlling external devices and a GSM module for remote communication.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Environmental temperature monitoring
  • Home automation systems
  • Industrial temperature control
  • Weather stations
  • Educational projects and prototyping

Technical Specifications

The KY-028 Sensor de Temperatura Digital is equipped with both analog and digital outputs, allowing for flexible integration into various projects. Below are the key technical details:

Key Technical Details

  • Operating Voltage: 3.3V to 5V DC
  • Output Type: Digital (threshold-based) and Analog (continuous)
  • Temperature Range: -55°C to +125°C
  • Accuracy: ±0.5°C (typical for LM35-based sensors)
  • Dimensions: 32mm x 14mm x 8mm
  • Interface: 3-pin header (VCC, GND, OUT)

Pin Configuration and Descriptions

The KY-028 module has a 3-pin interface. Below is the pinout description:

Pin Name Description
1 VCC Power supply pin. Connect to 3.3V or 5V DC.
2 GND Ground pin. Connect to the ground of the power supply or microcontroller.
3 OUT Output pin. Provides digital or analog temperature data based on the connection.

Usage Instructions

The KY-028 Sensor de Temperatura Digital is simple to use and can be connected directly to a microcontroller like the Arduino UNO. Below are the steps to use the sensor effectively:

Connecting the KY-028 to an Arduino UNO

  1. Power the Sensor: Connect the VCC pin of the KY-028 to the 5V pin on the Arduino UNO. Connect the GND pin to the Arduino's GND.
  2. Read the Output:
    • For digital output, connect the OUT pin to a digital input pin on the Arduino (e.g., D2).
    • For analog output, connect the OUT pin to an analog input pin on the Arduino (e.g., A0).
  3. Set the Threshold: Use the onboard potentiometer to adjust the temperature threshold for the digital output.

Sample Arduino Code

Below is an example of how to read both digital and analog outputs from the KY-028 sensor using an Arduino UNO:

// KY-028 Temperature Sensor Example Code
// Reads both digital and analog outputs from the sensor

// Define pin connections
const int digitalPin = 2; // Digital output pin from KY-028
const int analogPin = A0; // Analog output pin from KY-028

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);

  // Set the digital pin as input
  pinMode(digitalPin, INPUT);
}

void loop() {
  // Read the digital output (HIGH or LOW)
  int digitalValue = digitalRead(digitalPin);

  // Read the analog output (temperature as a voltage)
  int analogValue = analogRead(analogPin);

  // Convert the analog value to a temperature (assuming LM35 sensor)
  float temperature = (analogValue * 5.0 / 1023.0) * 100.0;

  // Print the results to the Serial Monitor
  Serial.print("Digital Output: ");
  Serial.println(digitalValue);
  Serial.print("Analog Temperature: ");
  Serial.print(temperature);
  Serial.println(" °C");

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

Important Considerations and Best Practices

  • Power Supply: Ensure the sensor is powered with a stable 3.3V or 5V DC supply.
  • 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 sensor in environments with high humidity or direct exposure to liquids.

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output from the Sensor

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the sensor is powered with 3.3V or 5V.
  2. Inaccurate Temperature Readings

    • Cause: Sensor calibration or environmental interference.
    • Solution: Calibrate the sensor using a known temperature source and adjust the readings in the code.
  3. Digital Output Always HIGH or LOW

    • Cause: Incorrect threshold setting.
    • Solution: Adjust the potentiometer to set the desired temperature threshold.
  4. Analog Output Not Changing

    • Cause: Faulty sensor or incorrect analog pin connection.
    • Solution: Verify the sensor's functionality and ensure the analog pin is correctly connected.

FAQs

Q: Can the KY-028 measure negative temperatures?
A: Yes, the sensor can measure temperatures as low as -55°C, but ensure the microcontroller and code support negative values.

Q: How do I know if the digital output is working?
A: The onboard LED will light up when the temperature exceeds the set threshold.

Q: Can I use the KY-028 with a 3.3V microcontroller?
A: Yes, the sensor is compatible with both 3.3V and 5V systems.

Q: Is the sensor waterproof?
A: No, the KY-028 is not waterproof. Use a waterproof casing if necessary for your application.