🤝 Buying in Bulk? Get Exclusive B2B Pricing • 💬 WhatsApp Us: +91 93454 49314 • 🚚 Pan India Shipping

🛒 Shop with a minimum cart value of ₹200 • 🚚 Fast & Secure Shipping Across India

  • mail-1 info@anuelectronics.com
  • electro-marker-icon Chennai
  • electro-user-icon Sign in or Register
Anu Electronics
  • 0
No result found for your search.
  • Home
  • Sensors
  • GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable
Categories
  • Home
  • Boards
    • Development Boards
  • Modules & Sensors
    • Sensors
    • Displays
    • Wireless & Communication
    • Antennas
    • Relays & Switches
    • Modules & Accessories
  • Motors & Power
    • Motors & Motor Drivers
    • Power Supply & Charging
    • Battery
  • Components
    • Resistors
    • Capacitors
    • Diodes
    • LEDs & Lighting
    • Connectors
  • Tools & Prototyping
    • Wires & Cables
    • Breadboard & Prototyping
    • Tools & Test Equipment
    • 3D Printing
  • Shop by Project
    • Starter Kits
    • Robotics
    • Drone
Starter Kits
Smart Starter Kit for Uno R3 with board, LCD, sensors, stepper motor, servo and storage box
Smart Starter Kit for Uno R3 Compatible with Arduino
Rs. 2,199.00
Rs. 3,999.00
Smart Starter Kit for Arduino Uno EK R4 Minima
Smart Starter Kit for Arduino Uno EK R4 Minima
Rs. 2,999.00
Rs. 5,999.00
600 pcs LED Kit 5mm – 6 Assorted Colors (Red, Green, Blue, Yellow, White, Orange)
600 pcs LED Kit 5mm – 6 Assorted Colors (Red, Green, Blue, Yellow, White, Orange)
Rs. 599.00
Rs. 849.00
37 in 1 Sensors Kit
37 in 1 Sensors Kit
Rs. 1,649.00
Rs. 1,999.00
STM32 Starter Kit with Blue Pill board, ST-Link V2, OLED, sensors, LEDs and storage box
STM32 Starter Kit with OLED, Sensors & ST-Link V2
Rs. 1,879.00
Rs. 3,999.00
Raspberry Pi Pico Starter Kit
Raspberry Pi Pico Starter Kit with Breadboard & Components for Beginners
Rs. 1,879.00
Rs. 4,199.00
 IoT smart starter kit with various electronic components
IoT Smart Starter Kit with ESP32, Sensors & Breadboard for Beginners
Rs. 1,879.00
Rs. 3,999.00
Arduino starter kit with various electronic components
Smart Starter Lite Kit for Uno R3 Compatible with Arduino
Rs. 999.00
Rs. 1,999.00
% Rs. -495.00
GP2Y0A21YK0F compatible IR distance sensor with red, black and yellow 3-wire cable
GP2Y0A21YK0F compatible IR distance sensor with red, black and yellow 3-wire cable
Anu Electronics

GP2Y0A21YK0F Compatible IR Distance Sensor 10–80 cm with Cable

  • Share
  • Tweet
Product SKU: ANU-SEN-GP2Y0A21
Available:
Only a few left in stock
In stock
In stock
Pre-order
Out of stock
Rs. 495.00
 
  • Description
  • Reviews

This analog infrared distance sensor is compatible with the Sharp GP2Y0A21YK0F. It measures distances from 10 to 80 cm and outputs a voltage that changes with distance, so you can read it with any microcontroller's analog input. A 3-wire cable is included.

Specifications

Values below are from the Sharp GP2Y0A21YK0F reference datasheet; this is a compatible part.

Compatible with Sharp GP2Y0A21YK0F
Measuring range 10–80 cm
Supply voltage 4.5–5.5 V
Supply current About 30 mA typical
Output Analog voltage (higher voltage = closer object)
Update time About 38 ms per measurement
Connector 3-pin (VO, GND, VCC), cable included

Typical projects

  • Obstacle avoidance for robots
  • Hand or object presence detection
  • Distance display with an LCD or OLED

Practical notes

The output is not linear with distance, so use a lookup table or a curve fit in your code. Below 10 cm the readings become ambiguous, so mount the sensor at least 10 cm back from the closest object you need to measure. Add a 10 µF capacitor between VCC and GND near the sensor to smooth current spikes that can make readings noisy. For longer distances, see the 20–150 cm model.

Frequently asked questions

Is this a genuine Sharp sensor?

No. It is a GP2Y0A21YK0F-compatible sensor and works with the same code and wiring.

Does it work with ESP32 (3.3 V)?

Power the sensor from 5 V. Before connecting the output to a 3.3 V board, check its maximum output against your ADC input limit; a simple resistor divider keeps it within range.

What's included

  • 1 × IR distance sensor (10–80 cm)
  • 1 × 3-wire cable

Buying from Anu Electronics

Sold by Anu Electronics, Chennai, with shipping across India. For bulk orders, WhatsApp +91 93454 49314 or email info@anuelectronics.com.

Related products

GP2Y0A02YK0F Compatible IR Distance Sensor 20–150 cm

GP2Y0A02YK0F compatible IR distance sensor with 3-wire cable
Rs. 695.00

HC SR04 Ultrasonic Sensor

HC SR04 Ultrasonic Sensor
Rs. 84.00
Rs. 149.00

MG995 Metal Gear High Torque Servo Motor 180°

Servo motor with wiring
Rs. 316.00
Rs. 399.00

4WD Robot Car Kit with Chassis – DIY Robotics Kit for Beginners

4WD Robot Car Kit with Chassis DIY Robotics Kit for Beginners
Rs. 649.00
Rs. 999.00

Passive Buzzer Module

Passive Buzzer Module 3.3V/5V
Rs. 29.00
Rs. 399.00

16x2 LCD Display

16x2 LCD Display Module
Rs. 249.00
Rs. 399.00

Official Arduino UNO EK (एक) R4 WiFi Made in India

Arduino R4 WiFi development board on a white background
Rs. 1,599.00

ESP32 WROOM 32E Development Board

ESP32 WROOM 32E Development Board
Rs. 1,643.00
Rs. 1,799.00

Brands

arduino logo
raspberry pi logo
seeed studio logo
waveshare logo
woer logo
elecfuture logo
jlcpcb logo

Featured products

0.96-inch OLED Display (Blue), illustrative blue OLED and 128 x 64 text on screen
0.96" OLED Display (Blue)
Rs. 249.00
Rs. 399.00
4 Digit 7 Segment LED Display Module
4 Digit 7 Segment LED Display Module
Rs. 79.00
Rs. 119.00
1 Digit Seven Segment Display
Seven Segment LED Display 0.56 inch Red
Rs. 9.00
Rs. 25.00

Onsale Products

433MHz RF Receiver Module with Antenna
433MHz RF Receiver Module with Antenna | RX217/RX500 Superheterodyne Wireless Receiver | 2V-5V DC
Rs. 129.00
Rs. 199.00
USB To TTL CP2102 Converter
USB To TTL CP2102 Converter
Rs. 180.00
Rs. 349.00
RF Transmitter Receiver Module 315MHz Wireless Link Kit For Arduino
RF Transmitter Receiver Module 315MHz Wireless Link Kit For Arduino
Rs. 99.00
Rs. 149.00

Top Rated Products

Raspberry Pi Zero v1.3 Board
Raspberry Pi Zero v1.3 Board
Rs. 1,599.00
Rs. 1,999.00
Raspberry Pi Pico Starter Kit
Raspberry Pi Pico Starter Kit with Breadboard & Components for Beginners
Rs. 1,879.00
Rs. 4,199.00
Raspberry Pi 5 8 GB RAM
Raspberry Pi 5 8 GB RAM
Rs. 23,000.00
Rs. 30,000.00

Clients

Sign up to Newsletter
Got questions? Whatsapp Us
+91 93454 49314
10:00 AM - 7:00 PM (Mon - Sat)
Contact info

Location:

INDIA:

ANU ELECTRONICS
63/1, Moorthy St Ext,
SM Nagar, Vivekanandapuram,
West Mambalam,
Chennai 600033, Tamil Nadu, India

WhatsApp: +91 93454 49314

USA:

ANU LABS, LLC.
131 Continental Dr, Suite 305,
Newark, DE 19713,
United States

Phone: +1 302 455 7202

Find In Fast
  • Account
  • My Cart
  • Payment Options
  • About Us
  • Our Services
  • Our Clients
  • Contact Us
Information
  • Privacy policy
  • Return & Refund Policy
  • Shipping policy
  • Terms of service
  • Contact Info
  • FAQ
In the Spotlight
  • Sensors
  • Arduino
  • Raspberry Pi
  • ESP32
  • STM32
  • Starter Kits
  • Robotic Kits
© 2026 Anu Electronics. All Rights Reserved
    Payment Icons Strip
    Product successfully added to your Shopping Cart
    Continue shopping View cart