COVID-19 Update: Our online sales are continuing for our CanadianUS and many International customers. Package deliveries are being slightly delayed in transit but are still arriving. Orders are shipped the next business day after they are received. Contact Us for any questions.

Infrared Reflectance Sensor

This IR reflective sensor utilizes a TCRT5000 to detect color and distance. It emits IR and then detects if it receives the echo. This sensor is often used in line following robots, auto data logging on utility meters because this module can sense if a surface is white or black.

The measuring distance range from 1mm to 8mm and the central point is about 2.5mm. There is also an onboard potentiometer to adjust the sensitivity.

The infrared diode will emit infrared continually when the module is connected to power, when the emitted infrared light has not been reflected or the strength is not big enough,the triode will in the off state, at this time, D0 output logic LOW and the signal indicate LED off.


Supply Voltage: 3.3V~5V
Detect Distance: 1mm-8mm (optimal 2.5mm)
Digital Output: HIGH when objects detected
On-board Indicator LED: Shows when detection triggered
Sensitivity: On-board potentiometer to adjust
Driver: On-board LM393 chip
Board Size: 28mm long x 15mm wide

Infrared Reflectance Sensor Pinout

Vcc: 3.3 to 5 V DC Supply Input
Gnd: Ground Input
D0: Output that goes low when obstacle is in range
A0: Output Analog signal
Power LED: Illuminates when power is applied
Obstacle (Output) LED: Illuminates when obstacle is detected
Sensitivity Adjust: Adjust detection distance. CCW decreases distance. CW increases distance


Arduino Reflectance Sensor Connection - Analog

Connecting your Reflectance Sensor Module to the Arduino requires only three connections. Power (+5v), Ground and a connection between the A0 ports on both the Arduino and the Reflectance Sensor.


Arduino R3 to Infrared Reflectance Sensor Connection - Analog Mode


Arduino UNO R3 Code

The Arduino UNO R3 code to measure the output of the Infrared Reflectance Sensor is included as part of the examples provided in the Arduino IDE.

Launch the AnalogReadSerial example and upload the sketch to your Arduino.

After uploading the sketch, user the Serial Monitor (Ctrl+Shift+M or Tools...Serial Monitor) and the analog relative readings will be displayed as the sensor data changes.

Reads an analog input on pin 0, prints the result to the serial monitor.
Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue = analogRead(A0);
  // print out the value you read:
  delay(1);        // delay in between reads for stabilty


Arduino Reflectance Sensor Connection - Digital

Arduino R3 to Infrared Reflectance Sensor Connection - Digital Mode
int LED = 13; // Use the onboard Uno LED
int isObstaclePin = 2;  // This is our input pin
int isObstacle = HIGH;  // HIGH MEANS NO OBSTACLE

void setup() {
  pinMode(LED, OUTPUT);
  pinMode(isObstaclePin, INPUT);

void loop() {
  isObstacle = digitalRead(isObstaclePin);
  if (isObstacle == LOW)
    Serial.println("Obstacle!! Obstacle!!");
    digitalWrite(LED, HIGH);
    Serial.println("All Clear");
    digitalWrite(LED, LOW);

TCRT5000 Sensor Specification Datasheet

The sensor used on the Infrared Reflectance is the TCRT5000. Full product specification on the sensor are available in PDF format.

Write a review

Note: HTML is not translated!
    Bad           Good

Infrared Reflectance Sensor

Senses Between 1mm-8mm
  • Product Code: Infrared Reflectance Sensor
  • Availability: In Stock
  • $0.95 USD

Related Products

Flame Sensor Module

Flame Sensor Module

Digital Output

Flame Sensor Module Pre-Assembled Module A flame sensor module that consists of a flame sensor..

$0.95 USD $1.75 USD

Arduino Compatible Mini ATtiny85 With USB

Arduino Compatible Mini ATtiny85 With USB

USB Type-A Interface

Mini ATtiny85 with USB Type-A Interface Arduino Compatible The Digispark compatible developmen..

$4.95 USD

Arduino Compatible Mini ATtiny85 (Micro USB)

Arduino Compatible Mini ATtiny85 (Micro USB)

Micro USB Interface

Mini ATtiny85 with Micro USB Interface Arduino Compatible The Digispark compatible development..

$4.95 USD

Nano v3 ATMega328 with Micro USB

Nano v3 ATMega328 with Micro USB

Arduino Nano Compatible

Arduino Nano v3 Compatible ATmega328 with CH340G and MicroUSB This Arduino Nano compatible mod..

$6.95 USD

Arduino Uno R3 (Wavgat)

Arduino Uno R3 (Wavgat)

with USB Cable (Only 2 Left!)

Arduino Uno R3 by Wavgat Arduino Uno R3 Compatible Arduino Uno R3 is a microcontroller board b..

$4.95 USD $9.95 USD

5-Channel Flame Detector

5-Channel Flame Detector

5 Independent Flame Sensors

5-Channel Flame Detector for Arduino or Raspberry Pi 5 Independent Flame Sensors Use this modu..

$3.95 USD

Arduino Uno R3

Arduino Uno R3

Fully Compatible - No Extra Drivers

Arduino Uno R3 Fully Arduino Uno R3 Compatible No Special Drivers Needed Arduino Uno R3 is a ..

$8.45 USD $12.95 USD