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
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
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.
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.
| Pin | Function |
|---|---|
| VCC | 3.3-5V |
| GND | Ground |
| AO | Analog output |
| DO | Digital output |
| OUT | Single output on QRE1113 digital |
- VCC
- 3.3-5V
- GND
- Ground
- AO
- Analog output
- DO
- Digital output
- OUT
- Single output on QRE1113 digital
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 pin | Arduino | Note |
|---|---|---|
| AO | A0 | Higher on white on most modules |
| DO | D2 | Set threshold with the pot |
| VCC | 5V | 3.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
Example code
The SparkFun QRE1113 digital version needs a charge-and-time read; the analog breakout works with this sketch.
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);
}Setup and tuning
QRE1113 works best 1 to 3 mm from the surface; ITR9606 is a slot sensor that detects objects in its gap.
analog boards give a voltage; digital boards give a pulse or comparator output.
bare sensors need a current-limit resistor for the LED (about 130 to 220 Ω at 5 V) and a pull-up for the transistor.
use the ITR9606 with a slotted disk to count wheel turns.
shade from ambient light.
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
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.
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.
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
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


