TCRT5000 Line Tracking Sensor / Infrared Reflective Sensor Module
The TCRT5000 Infrared Reflective Sensor Module is a compact optical sensing board designed for line-following robots, surface detection, object counting and embedded electronics projects. Operating on a 3.3V–5V DC supply, the module provides both analog and digital outputs, making it suitable for integration with Arduino, ESP32 and other compatible microcontroller platforms. Its adjustable detection threshold, four-pin interface and compact PCB design make it a practical solution for educational robotics and automation applications.
Product Highlights
- Sensor Model: TCRT5000
- Comparator IC: LM393
- Sensor Type: Reflective infrared sensor
- Operating Voltage: 3.3–5 V DC
- Outputs: Analog and digital
- Emitter: Infrared LED
- Receiver: Phototransistor
- Threshold Adjustment: Onboard potentiometer
- LED Indicators: Power and digital output
- Interface Pins: VCC, GND, DO, AO
- PCB Size: 31 × 14 mm
- PCB Series: MH-Sensor-Series
- Mounting: Single mounting hole
- PCB Colour: Blue
What’s in the Box?
- 1 × TCRT5000 Infrared Line Tracking Sensor Module





TCRT5000 Line Tracking Sensor – Frequently Asked Questions
Q1. How does the TCRT5000 Line Tracking Sensor detect a line?
An infrared LED shines light onto the surface, and a phototransistor senses how much light reflects back. A dark line on a light background usually produces a clear change in the sensor reading. The contrast depends on the material, surface finish and distance from the sensor.
Q2. What is the difference between the analog (AO) and digital (DO) outputs?
AO gives a variable signal that represents the amount of reflected infrared light. Use it to compare surfaces or set a threshold in software. DO switches between HIGH and LOW when the signal crosses the threshold set by the onboard potentiometer. It is useful for simple line detection.
Q3. How do I adjust the detection threshold?
Mount the sensor at its intended height, then move it between the line and the background under normal operating light. Turn the potentiometer until the digital output LED consistently changes state between the two surfaces. The potentiometer sets the switching threshold for the LM393 comparator. A separate LED indicates power.
Q4. Can I connect the module to an Arduino, ESP32 or STM32?
Yes. The module operates on 3.3–5 V DC. Connect VCC to the supply and GND to the controller’s ground. Connect AO to an analog input or DO to a digital input, depending on your project. For a 3.3 V controller such as an ESP32, power the module at 3.3 V to keep its output signals within the controller’s input range.
Q5. How is the sensor used in a line-following robot?
Mount it underneath the chassis facing the track. The microcontroller reads changes between the line and the background, then adjusts the motors through a motor driver. Placing several sensors across the front of the robot helps it determine whether to steer left or right.
Q6. Can it count objects or measure rotational speed?
Yes, when the target produces a clear change in reflected light. For example, a reflective mark on a dark rotating disc can produce one pulse per revolution. A microcontroller can count these pulses to calculate RPM. The same principle works for object counting and short-range position detection.
Q7. What are the module dimensions and mounting options?
The blue PCB measures approximately 31 × 14 mm and has one mounting hole. Its four-pin male header accepts compatible jumper wires. Leave room to reach the potentiometer after installation so you can calibrate the sensor in place.
Q8. Why does the sensor detect some surfaces better than others?
Materials that look different to the eye can reflect similar amounts of infrared light. Strong sunlight and excessive mounting distance can also reduce detection reliability. Test the actual line and background at a consistent height, then adjust the threshold under the lighting conditions your project will use.
Q9. Where can I buy the TCRT5000 Line Tracking Sensor in Pakistan?
The TCRT5000 Line Tracking Sensor is available from Electrica for Arduino projects, line-following robots and optical sensing applications. Visit Electrica
Explore Our Range & Product Resources
- Building a robot or setting up your workbench? Explore our range of sensors, electronic components, power modules, repair tools and test equipment at Electrica.
- The TCRT5000 detects changes in reflected infrared light, helping robots follow contrasting lines. For sensing distances and application examples, see the official Vishay datasheet.






There are no reviews yet.