

The TCRT-5000 is an infrared (IR) sensor module manufactured by ARDUINO with the part ID UNO. It consists of an IR LED and a phototransistor housed in a compact package. This sensor is widely used for object detection and proximity sensing due to its ability to detect the reflection of infrared light from nearby objects. The TCRT-5000 is particularly popular in robotics, line-following robots, and industrial automation systems.








The TCRT-5000 IR sensor has the following key technical specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Operating Current | 10 mA (typical) |
| Detection Range | 2 mm to 15 mm (depending on object reflectivity) |
| IR Wavelength | 950 nm |
| Output Type | Analog or Digital (depending on circuit) |
| Dimensions | 10.2 mm x 5.8 mm x 7 mm |
| Operating Temperature | -25°C to +85°C |
The TCRT-5000 module typically has 3 or 4 pins, depending on the specific breakout board. Below is the pin configuration for a common 4-pin module:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V to 5V) |
| 2 | GND | Ground pin |
| 3 | OUT | Output pin (provides analog or digital signal based on the detected reflection) |
| 4 | EN (optional) | Enable pin (used to enable or disable the sensor module) |
Below is an example of how to use the TCRT-5000 with an Arduino UNO to detect objects:
// TCRT-5000 IR Sensor Example Code
// Connect the OUT pin of the sensor to Arduino pin A0 (analog input)
#define SENSOR_PIN A0 // Define the analog pin connected to the sensor
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
pinMode(SENSOR_PIN, INPUT); // Set the sensor pin as input
}
void loop() {
int sensorValue = analogRead(SENSOR_PIN); // Read the analog value from the sensor
Serial.print("Sensor Value: ");
Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
// Check if an object is detected (threshold value may vary based on calibration)
if (sensorValue > 500) {
Serial.println("Object Detected!");
} else {
Serial.println("No Object Detected.");
}
delay(100); // Small delay for stability
}
No Output or Incorrect Readings
Sensor Not Detecting Objects
Fluctuating Readings
Output Always High or Low
Q1: Can the TCRT-5000 detect transparent objects?
A1: The sensor may struggle to detect transparent objects due to low IR reflection. Use a different sensor for such applications.
Q2: How do I increase the detection range?
A2: The detection range is limited by the sensor's design. However, you can improve performance by using highly reflective surfaces or adjusting the sensitivity potentiometer.
Q3: Can I use the TCRT-5000 with a 3.3V microcontroller?
A3: Yes, the sensor operates at both 3.3V and 5V, making it compatible with 3.3V microcontrollers.
Q4: What is the difference between analog and digital output?
A4: Analog output provides a continuous voltage proportional to the detected reflection, while digital output gives a binary HIGH or LOW signal based on a threshold.