

The IR Sensor (Manufacturer: JLC PCB, Part ID: UNO) is a versatile electronic component designed to detect infrared (IR) radiation. It is widely used in applications such as proximity sensing, motion detection, and remote control systems. The sensor operates by emitting and/or detecting IR light, making it suitable for both reflective and transmissive sensing tasks.
Common applications include:








The following table outlines the key technical details of the IR Sensor:
| Parameter | Specification |
|---|---|
| Operating Voltage | 3.3V - 5V |
| Operating Current | 20mA (typical) |
| Detection Range | 2cm - 30cm (adjustable) |
| Output Type | Digital (High/Low) |
| Wavelength Sensitivity | 760nm - 1100nm (Infrared range) |
| Response Time | < 2ms |
| Operating Temperature | -25°C to 85°C |
The IR Sensor typically has three pins. The table below describes each pin:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V - 5V) |
| 2 | GND | Ground pin |
| 3 | OUT | Digital output pin (High when no object detected, Low when object detected) |
VCC pin to a 3.3V or 5V power source and the GND pin to the ground of your circuit.OUT pin to a digital input pin of your microcontroller or to an external circuit for further processing.OUT pin.Below is an example of how to connect and use the IR Sensor with an Arduino UNO:
VCC pin of the IR Sensor to the 5V pin on the Arduino.GND pin of the IR Sensor to the GND pin on the Arduino.OUT pin of the IR Sensor to digital pin 2 on the Arduino.// IR Sensor Example Code for Arduino UNO
// This code reads the output of the IR sensor and prints the status to the Serial Monitor.
const int irSensorPin = 2; // IR sensor output connected to digital pin 2
int sensorValue = 0; // Variable to store the sensor reading
void setup() {
pinMode(irSensorPin, INPUT); // Set the IR sensor pin as input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
sensorValue = digitalRead(irSensorPin); // Read the sensor output
if (sensorValue == LOW) {
// Object detected
Serial.println("Object detected!");
} else {
// No object detected
Serial.println("No object detected.");
}
delay(500); // Wait for 500ms before the next reading
}
Sensor Not Detecting Objects
False Positives or Erratic Behavior
Short Detection Range
Output Always High or Low
Q1: Can the IR Sensor detect transparent objects?
A1: No, the IR Sensor may not reliably detect transparent objects as they do not reflect sufficient IR light.
Q2: Can I use the IR Sensor with a 3.3V microcontroller?
A2: Yes, the sensor operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V systems.
Q3: How do I increase the detection range?
A3: Adjust the onboard potentiometer to increase the sensitivity and detection range.
Q4: Can the IR Sensor detect heat?
A4: No, this sensor is designed to detect reflected IR light, not heat. For heat detection, use a thermal IR sensor.
By following this documentation, you can effectively integrate and troubleshoot the IR Sensor in your projects.