

The IR Break Beam Sensor by Adafruit Industries is a reliable and easy-to-use sensor that consists of an infrared (IR) emitter and a photodetector. The sensor works by emitting an invisible IR beam from the emitter to the detector. When an object interrupts this beam, the sensor detects the break and outputs a signal. This makes it ideal for applications requiring object detection, counting, or motion sensing.








Below are the key technical details for the IR Break Beam Sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V DC |
| Current Consumption | ~20mA (emitter) |
| Detection Range | Up to 50 cm (depending on alignment) |
| Output Signal | Digital (Active Low) |
| Beam Wavelength | 950 nm (infrared) |
| Response Time | < 1 ms |
| Operating Temperature | -25°C to 85°C |
The IR Break Beam Sensor consists of two parts: the emitter and the receiver. Each part has two wires for connection.
| Wire Color | Function |
|---|---|
| Red | Power (VCC) |
| Black | Ground (GND) |
| Wire Color | Function |
|---|---|
| Red | Power (VCC) |
| Black | Ground (GND) |
| Yellow | Signal Output |
Connect the Emitter:
Connect the Receiver:
Operation:
Below is an example of how to use the IR Break Beam Sensor with an Arduino UNO:
// IR Break Beam Sensor Example Code
// This code detects when the IR beam is broken and prints a message to the Serial Monitor.
#define SENSOR_PIN 2 // Connect the yellow wire of the receiver to digital pin 2
void setup() {
pinMode(SENSOR_PIN, INPUT); // Set the sensor pin as an input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorState = digitalRead(SENSOR_PIN); // Read the sensor's output
if (sensorState == LOW) {
// If the beam is broken, the sensor output goes LOW
Serial.println("Beam broken! Object detected.");
} else {
// If the beam is uninterrupted, the sensor output remains HIGH
Serial.println("Beam intact.");
}
delay(100); // Small delay to avoid flooding the Serial Monitor
}
The sensor is not detecting objects:
False triggers or inconsistent readings:
No output signal from the receiver:
Q: Can the detection range be adjusted?
A: The detection range is fixed, but you can improve performance by ensuring proper alignment and avoiding obstructions.
Q: Can I use this sensor outdoors?
A: Yes, but avoid direct sunlight or extreme weather conditions, as these can interfere with the IR beam.
Q: What happens if the emitter and receiver are too far apart?
A: The sensor may fail to detect the IR beam, resulting in false readings. Keep the distance within the specified range (up to 50 cm).
Q: Can I use multiple IR Break Beam Sensors in the same project?
A: Yes, but ensure each sensor pair is properly aligned and does not interfere with others.