This sensor uses a triangulation method that is largely unaffected by object reflectivity, environmental temperature, or operating duration. It is widely used in robotics, automation, and other applications requiring reliable distance measurement or object detection. The module comes with cables for easy integration into electronic projects.

Features
- Analog output type
- Compliant with RoHS directive 2002/95/EC
- Reliable and cost-effective solution for distance and proximity sensing
Specifications
- Supply voltage 4.5 to 5.5 V
- Current consumption 33 mA
- Distance measuring range 20 to 150 cm
- Package size 29.5 13 21.6 mm
Applications
- Touch-less switch for sanitary equipment and public spaces
- Energy-saving sensor for ATMs, copiers, vending machines, laptops, and monitors
- Amusement equipment for arcade games and robots
- Robotics for obstacle avoidance, distance measurement, and proximity sensing
- Automation for object detection, positioning, and quality control
- Security for detecting presence in restricted areas
- Smart home technology for controlling lighting, heating, and appliances
Pin Connections
| Pin |
Description |
| VCC |
Module power supply 5 V |
| GND |
Ground |
| OUT |
Analog voltage output corresponding to distance |

Sample Project
Circuit Setup
- Arduino UNO R3
- GP2Y0A02YK0F Infrared Distance Sensor
- Male to Female Jumper Wires

Library
Use the Average.h library to calculate averaged sensor readings.
Sample Code
#include "Average.h"
Average ave(10);
void setup() {
Serial.begin(9600);
}
void loop() {
ave.push(60.374*1.3 * pow(map(analogRead(A0), 0, 1023, 0, 5000) / 1000.0, -1.16));
Serial.println(ave.mean());
delay(100);
}
References
This sensor uses a triangulation method that is largely unaffected by object reflectivity, environmental temperature, or operating duration. It is widely used in robotics, automation, and other applications requiring reliable distance measurement or object detection. The module comes with cables for easy integration into electronic projects.

Features
- Analog output type
- Compliant with RoHS directive 2002/95/EC
- Reliable and cost-effective solution for distance and proximity sensing
Specifications
- Supply voltage 4.5 to 5.5 V
- Current consumption 33 mA
- Distance measuring range 20 to 150 cm
- Package size 29.5 13 21.6 mm
Applications
- Touch-less switch for sanitary equipment and public spaces
- Energy-saving sensor for ATMs, copiers, vending machines, laptops, and monitors
- Amusement equipment for arcade games and robots
- Robotics for obstacle avoidance, distance measurement, and proximity sensing
- Automation for object detection, positioning, and quality control
- Security for detecting presence in restricted areas
- Smart home technology for controlling lighting, heating, and appliances
Pin Connections
| Pin |
Description |
| VCC |
Module power supply 5 V |
| GND |
Ground |
| OUT |
Analog voltage output corresponding to distance |

Sample Project
Circuit Setup
- Arduino UNO R3
- GP2Y0A02YK0F Infrared Distance Sensor
- Male to Female Jumper Wires

Library
Use the Average.h library to calculate averaged sensor readings.
Sample Code
#include "Average.h"
Average ave(10);
void setup() {
Serial.begin(9600);
}
void loop() {
ave.push(60.374*1.3 * pow(map(analogRead(A0), 0, 1023, 0, 5000) / 1000.0, -1.16));
Serial.println(ave.mean());
delay(100);
}
References