Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›IR Reflective Sensors

Component guide · Beginner · 3 min read

IR Reflective Sensors

QRE1113 Modules and SparkFun QRE1113 Analog Breakout, RPR220 Reflective Optoelectronic Module, M5Stack ITR9606 90° and 180° Units, M5Stack Reflective Unit and Waveshare IR Reflective Modules

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units isIR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units pinoutWiring the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective unitsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

Each of these has an IR LED and a phototransistor side by side. Light bounces off a surface and back into the sensor, so white or shiny surfaces read strongly and black reads weakly. Use them for line detection, table-edge detection, counting marks on a wheel or detecting paper. QRE1113 is tiny and works at 1-3mm; RPR220 and ITR9606 reach a few millimetres more. Modules give analog, digital or both.

Key specs at a glance

Sensing distance
QRE1113 about 1-3mm; RPR220 about 6mm; ITR9606 a few mm
Outputs
Analog, digital via comparator, or both
Supply
3.3-5V
LED
Infrared 940-950nm
Connectors
Header, Grove (M5Stack) or PH2.0
Layout
ITR9606 90° and 180° versions for different mounting

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1QRE1113 Infrared Reflection Sensor Module Purple – Digital Output, 3-Pin Header₹72
  • Option 2QRE1113 Infrared Reflection Sensor Module Red – Digital Output, 3-Pin Header₹72
  • Option 3RPR220 Reflective Optoelectronic Sensor Module – Photo Transistor Output₹95
  • Option 4M5Stack ITR9606 180° Infrared Reflective Sensor Unit – Vertical Layout₹239
  • Option 5M5Stack ITR9606 90° Infrared Reflective Sensor Unit₹259
  • Option 6M5Stack Infrared Reflective Sensor Unit – 5V, Analog & Digital Output₹699
01

What the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units is

IR reflective sensor modules such as the QRE1113 and ITR9606 pair an IR LED with a phototransistor to detect lines, marks, edges and slots at very short distance.

Read the analog output for the best results: put the sensor over white and black, note both values and set your threshold halfway. The digital output uses a comparator with a trim pot that does the same thing in hardware.

Keep the sensor at a constant distance from the surface; a change of 1mm changes the reading a lot. For counting rotations, stick a black and white stripe on the wheel and count edges with an interrupt.

02

IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units pinout

The pins on the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units and what each one does.

PinFunction
VCC3.3-5V
GNDGround
AOAnalog output
DODigital output
OUTSingle output on QRE1113 digital
PinFunction
VCC
3.3-5V
GND
Ground
AO
Analog output
DO
Digital output
OUT
Single output on QRE1113 digital
03

Wiring the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units

Shade the sensor from sunlight and strong lamps, which contain infrared.

IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units pinArduinoNote
AOA0Higher on white on most modules
DOD2Set threshold with the pot
VCC5V3.3V boards: power at 3.3V
AO
Arduino:
A0
Note:
Higher on white on most modules
DO
Arduino:
D2
Note:
Set threshold with the pot
VCC
Arduino:
5V
Note:
3.3V boards: power at 3.3V
04

Example code

The SparkFun QRE1113 digital version needs a charge-and-time read; the analog breakout works with this sketch.

Read a reflective sensor and detect black or white (Uno) · Arduino C++Verify & upload in Electrolark
int whiteVal = 900;   // measure over white
int blackVal = 150;   // measure over black

void setup() { Serial.begin(9600); }

void loop() {
  int v = analogRead(A0);
  int threshold = (whiteVal + blackVal) / 2;
  Serial.print(v);
  Serial.println(v > threshold ? "  white" : "  black");
  delay(100);
}
05

Setup and tuning

Distance

QRE1113 works best 1 to 3 mm from the surface; ITR9606 is a slot sensor that detects objects in its gap.

Wiring

analog boards give a voltage; digital boards give a pulse or comparator output.

Resistors

bare sensors need a current-limit resistor for the LED (about 130 to 220 Ω at 5 V) and a pull-up for the transistor.

Encoders

use the ITR9606 with a slotted disk to count wheel turns.

Light

shade from ambient light.

06

What you need

Shop this list11 of 12 found in our store · ₹3,018

  • QRE1113 Infrared Reflection Sensor Module Purple – Digital Output, 3-Pin Header: the part this guide coversQRE1113 Infrared Reflection Sensor Module Purple – Digital Output, 3-Pin Header₹72
  • Generic QRE1113 Infrared Reflection Sensor Module Red – Digital Output, 3-Pin Header: another version this guide coversQRE1113 Infrared Reflection Sensor Module Red – Digital Output, 3-Pin Header₹72
  • RPR220 Reflective Optoelectronic Sensor Module – Photo Transistor Output: another version this guide coversRPR220 Reflective Optoelectronic Sensor Module – Photo Transistor Output₹95
  • M5Stack ITR9606 180° Infrared Reflective Sensor Unit – Vertical Layout: another version this guide coversM5Stack ITR9606 180° Infrared Reflective Sensor Unit – Vertical Layout₹239
  • M5Stack ITR9606 90° Infrared Reflective Sensor Unit: another version this guide coversM5Stack ITR9606 90° Infrared Reflective Sensor Unit₹259
  • M5Stack Infrared Reflective Sensor Unit – 5V, Analog & Digital Output: another version this guide coversM5Stack Infrared Reflective Sensor Unit – 5V, Analog & Digital Output₹699
  • Waveshare IR Reflective Sensor Module – Digital/Analog Output, 3-5.3V: another version this guide coversWaveshare IR Reflective Sensor Module₹307
  • Waveshare Infrared Reflective Sensor Module – Digital/Analog Output: another version this guide coversWaveshare Infrared Reflective Sensor Module – Digital/Analog Output₹639
  • SparkFun QRE1113 Line Sensor Breakout (Analog) – Miniature IR Reflectance Module: another version this guide coversSparkFun QRE1113 Line Sensor Breakout (Analog) – Miniature IR Reflectance Module₹519
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
  • Solderless breadboard: to build without solderingSolderless Breadboard₹68
07

Alternatives and when to choose them

  • ✓TCRT5000 line sensor: the most common module.
  • ✓IR line sensor arrays: many channels for robots.
  • ✓Photointerrupters: slot type for encoders.
08

Common mistakes to avoid

  • !Mounting the QRE1113 too far away.
  • !No LED current-limit resistor.
  • !Exposing it to sunlight.
  • !Using analog reads too slowly for counting.
09

Frequently asked questions

How close must the QRE1113 be to the surface?

About 1 to 3 mm for strongest contrast.

What is the ITR9606 used for?

Detecting objects in its slot, such as encoder wheel slots.

Do I need resistors with the bare sensor?

Yes, a resistor for the LED and a pull-up for the phototransistor.

Can I read it with interrupts?

Yes, digital versions work with interrupts for counting.

Why are readings noisy?

Ambient light or vibration; shade and filter.

Parts for this guide

  • QRE1113 Infrared Reflection Sensor Module Purple – Digital Output, 3-Pin Header
    ₹72View
  • QRE1113 Infrared Reflection Sensor Module Red – Digital Output, 3-Pin Header
    ₹72View
  • RPR220 Reflective Optoelectronic Sensor Module – Photo Transistor Output
    ₹95View
  • M5Stack ITR9606 180° Infrared Reflective Sensor Unit – Vertical Layout
    ₹239View
  • M5Stack ITR9606 90° Infrared Reflective Sensor Unit
    ₹259View
  • M5Stack Infrared Reflective Sensor Unit – 5V, Analog & Digital Output
    ₹699View
  • Waveshare IR Reflective Sensor Module – Digital/Analog Output, 3-5.3V
    ₹309View
  • Waveshare Infrared Reflective Sensor Module – Digital/Analog Output
    ₹639View
  • SparkFun QRE1113 Line Sensor Breakout (Analog) – Miniature IR Reflectance Module
    ₹519View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
  • Solderless Breadboard
    ₹68View
Shop Infrared & Optical Detection Modules

Keep learning

Component guideBeginnerTCRT5000 IR Line SensorThe TCRT5000 is a reflective infrared sensor: an IR LED and a phototransistor side by side.3 min read · SensorsComponent guideIntermediateLine Sensor ArraysA line sensor array is a row of IR emitter and sensor pairs under a robot that sees a black line on a white floor (or the reverse).4 min read · RoboticsComponent guideBeginnerPhotointerrupters and Slot SensorsA photointerrupter has an infrared LED and a phototransistor facing each other across a slot.3 min read · Sensors

Sources

  • ON Semi QRE1113 datasheet
  • Rohm RPR-220 datasheet
  • Everlight ITR9606 datasheet

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units isIR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective units pinoutWiring the IR reflective sensor modules: QRE1113, RPR220, ITR9606 and Waveshare and M5Stack reflective unitsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide5 items · ₹1,785

QRE1113 Infrared Reflection Sensor Module Purple – Digital Output, 3-Pin Header · M5Stack Infrared Reflective Sensor Unit – 5V, Analog & Digital Output · Waveshare IR Reflective Sensor Module · Waveshare Infrared Reflective Sensor Module – Digital/Analog Output · Solderless Breadboard

Run itChange the inputs and watch the output

White reflects more IR and reads high here. The threshold is halfway between your white and black readings.

Serial monitor9600 baud
886  white

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question