Compel Groupgroup

Infrared Distance Sensor Module | Photoelectric Ranging | For Microcontrollers

Stock #:TBS-06386
SKU:SENS-00248
Infrared Distance Sensor Module | Photoelectric Ranging | For Microcontrollers - Image 1
1 / 6
$6.95
Ships to United States · standard est. 10-20 business days
Free standard shipping on orders over $59 (under 2kg). Express available at checkout.

This is a family of infrared distance sensors used to measure how far away an object is. Each model, like the GP2Y0A21YK0F, uses an IR beam to determine distance and provides a simple analog voltage o...

Select an option
1
$6.95
Fast Shipping
Secure Payment
Easy Returns

Good to know

Questions about this product

What's the difference between the GP2Y0A02YK0F and GP2Y0A21YK0F models?
The main difference is the detection range. The GP2Y0A21YK0F is for medium distances of 10cm to 80cm, while the GP2Y0A02YK0F is for longer ranges of 20cm to 150cm. You should choose the model that best fits the distance you need to measure.
What sort of projects are these infrared sensors used for?
They are commonly used for non-contact distance measurement and obstacle avoidance in robotics and automated machinery. You'll also find them used for things like presence detection, liquid level sensing, or triggering an action when an object is within a certain range.
How do I connect one of these to a microcontroller to get a reading?
These sensors output an analog voltage that changes based on the distance to an object. You connect the power and ground pins, then connect the sensor's output pin to an analog input on your microcontroller, like an Arduino. You then read that voltage value in your code to determine the distance.

Photoelectric Sensors spec sheet (PDF)

Get a one-page sheet with full description, specifications, technical details, FAQs, price & SKU - handy to save, print, or share.

Not sure which one?

Compare photoelectric sensors

This product
A collection of infrared ranging sensors, including GP2Y0A02YK0F and GP2Y0A21YK0F, capable of precise tilt sensor range detection.

Infrared Distance Sensor Module | Photoelectric Ranging | For Microcontrollers

Price$6.95
Rating5.0(18)
Sold900+
Stock In stock
You're viewing this
Alternative
Smart Car Robot E18-D80NK infrared obstacle avoidance photoelectric sensor, not a capacitive sensor.

Infrared Photoelectric Sensor | E18-D80NK Obstacle Avoidance

Price$6.95
Rating4.7(44)
Sold700+
Stock In stock
Alternative
Smart Car Robot E18-D80NK infrared obstacle avoidance photoelectric sensor, not a capacitive sensor.

Infrared Photoelectric Sensor | 3-80cm Obstacle Avoidance Switch

Price$9.95
Rating4.9(62)
Sold700+
Stock In stock

Compare options

More Photoelectric Sensors

Explore the range

Popular in Industrial & Machinery

Complete the set

Accessories & add-ons