Infrared Reflectance Sensor
This IR reflective sensor uses 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.
Features:
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

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 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.
/*
AnalogReadSerial
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:
Serial.begin(9600);
}
// 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:
Serial.println(sensorValue);
delay(1); // delay in between reads for stabilty
}
Arduino Reflectance Sensor Connection - Digital

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);
Serial.begin(9600);
}
void loop() {
isObstacle = digitalRead(isObstaclePin);
if (isObstacle == LOW)
{
Serial.println("Obstacle!! Obstacle!!");
digitalWrite(LED, HIGH);
}
else
{
Serial.println("All Clear");
digitalWrite(LED, LOW);
}
delay(200);
}
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.
| Light Packet | |
| Package Type | Light Packet |
Infrared Reflectance Sensor
- Product Code: Infrared Reflectance Sensor
- Availability: In Stock
- Light Packet Shipping Eligible
-
$1.00 USD
Related Products
Flame Sensor Module
Flame Sensor Module Pre-Assembled Module A flame sensor module that consists of a flame sensor..
$1.00 USD
ATtiny85 Arduino (USB)
Mini ATtiny85 with USB Type-A Interface Arduino Compatible The Digispark compatible developmen..
$4.45 USD
ATtiny85 Arduino (Micro USB)
Mini ATtiny85 with Micro USB Interface Arduino Compatible The Digispark compatible development..
$4.45 USD
Nano v3 ATMega328 (Micro USB-Black)
Arduino Nano v3 Compatible ATmega328 with CH340G and Micro USB Note: This model has been disco..
$12.50 USD
5-Channel Flame Detector
5-Channel Flame Detector for Arduino or Raspberry Pi 5 Independent Flame Sensors Use this modu..
$3.90 USD
Arduino UNO R3 (ATmega16U2 USB)
Arduino UNO R3 Fully Arduino Uno R3 Compatible No Special Drivers Needed Arduino Uno R3 is a ..
$11.00 USD
Arduino MEGA 2560 CH340G
Arduino MEGA 2560 R3 Compatible with CH340G Uses CH340G Universal UART The Arduino MEGA 2560 i..
$16.50 USD
Arduino MEGA 2560 16U2
Arduino MEGA 2560 R3 Compatible with 16U2 Uses ATMEGA16U2 UART The Arduino MEGA 2560 is based ..
$22.40 USD
Nano v3 ATMega168P (Micro USB)
Arduino Nano v3 Compatible ATmega168P with CH340G and MicroUSB This Arduino Nano compatible module..
$6.40 USD
Pro Mini 328P 5V/16MHz
Arduino Compatible Pro Mini 328P Fully Arduino Compatible - 5V/16MHz The Arduino Pro Mini 328P fea..
$8.70 USD
Nano v3 ATMega328 (USB-C)
Arduino Nano v3 Compatible ATmega328 USB-C Interface with CH340G UART This Arduino Nano compatible..
$10.50 USD
Nano v3 ATMega328 (Micro USB-Blue)
Arduino Nano v3 Compatible ATmega328 Micro USB Interface with CH340G UART This Arduino Na..
$10.50 USD
Pro Mini 168P 5V/16MHz
Arduino Compatible Pro Mini 168P Fully Arduino Compatible - 5V/16MHz The Arduino Pro Mini 168P fea..
$5.80 USD
Nano v3 ATMega328P with Shield
Arduino Nano v3 Compatible ATmega328P Micro USB Interface with CH340G UART This Arduino N..
$12.00 USD
Pro Mini 328P 3.3V/8MHz
Arduino Compatible Pro Mini 328P Fully Arduino Compatible - 3.3V/8MHz The Arduino Pro Mini 328P fe..
$8.70 USD
Atmel ATtiny85-20PU Controller
Atmel ATtiny85-20PU Microcontroller Arduino IDE Compatible The ATtiny85 is a powerful little 8..
$3.50 USD
ATtiny Mini Dev Board
ATtiny Miniature Development Board Supports ATtiny13A, ATtiny25, ATtiny45, and ATtiny85 Th..
$1.00 USD
ATmega328P-PU (Atmel)
Atmel ATmega328P-PU Arduino UNO and Arduino IDE Full Compatibility Atmel ATmega328P microcontr..
$5.30 USD
ATmega328P-PU Minimal Kit
Atmel ATmega328P-PU Minimal Kit Arduino UNO and Arduino IDE Full Compatibility Atmel ATmega328..
$5.70 USD
Arduino Pro Micro Compatible
Pro Micro Arduino Compatible Available in 5V @ 16MHz or 3.3V @ 8MHz Arduino Compatible Th..
$8.25 USD
IR Avoidance Sensor
IR Avoidance Sensor Detects From 2 to 30cm This module is an inexpensive solution for an obsta..
$1.10 USD
Arduino UNO R4 WiFi (Compatible)
Arduino UNO R4 WiFi (compatible) Fully Arduino Uno R4 Compatible No Special Drivers Needed Ne..
$16.92 USD
























