Description
What it is
The KY-005 infrared sensor is an Arduino-compatible module designed to detect infrared energy at specific wavelengths. This device is used in various security and control projects, such as presence detection or distance calculation.
Features
- KY-005 Module for Arduino
- For detecting infrared energy
- Used in security and control projects
What it is for
The KY-005 sensor is ideal for creating alarm systems that activate a siren or perform other actions when the presence of people or objects is detected. It is compatible with Arduino and can be used in 3D printing, drones, and other electronic devices.
Tutorial: How to Use KY-005 Infrared Sensor Module
The KY-005 module is an infrared sensor used to detect electromagnetic energy at infrared wavelengths. Perfect for Arduino projects that require presence detection or distance calculation.
What you need
- Arduino Uno
- USB connection from PC to Arduino
- Jumper Cable M/F
- Arduino IDE Software
Steps
- Connect the jumper wires to the GND, VCC, and SIG pins of the KY-005 module respectively to GND, 5V, and a digital pin of the Arduino (for example pin 2).
- Open the Arduino IDE software and install the ‘NewPing’ library.
- Write a sketch to read the values of the KY-005 sensor.
- Upload the sketch to the Arduino microcontroller.
- Optimize data reading based on project requirements.
Example code
/*
Inserire qui lo sketch di esempio per leggere i valori del sensore KY-005.
*/
Mini project
Create a simple alarm system that activates a siren when the presence of people or objects is detected in its field of view.
Common mistakes
- Do not connect the pins of the KY-005 sensor correctly.
- Use an incompatible voltage with the KY-005 module.
- Omit the installation of the necessary library to read the sensor values.
- Ignore the configuration of analog or digital signals in the Arduino IDE software.
Recommended accessories
- Arduino Nano
- 3D Printed Case for Arduino Uno
- PIR Motion Sensors KY-026
- 16×2 LCD Display
Frequently asked questions
Can the KY-005 module detect distances?
Yes, but the measurement accuracy varies and requires calibration.
How do you connect the KY-005 to the Arduino?
Connect the GND, VCC, and SIG pins of the sensor to the corresponding pins on the Arduino.







Reviews
There are no reviews yet.