

The E18-D80NK Photoelectric Switch, manufactured by LEFIRCKO, is an infrared proximity sensor designed to detect the presence of nearby objects using infrared light. This sensor is widely used in automation, robotics, and safety applications due to its reliability, ease of use, and adjustable detection range. It is particularly suitable for object detection, obstacle avoidance, and non-contact sensing in industrial and consumer electronics.








The following table outlines the key technical details of the E18-D80NK Photoelectric Switch:
| Parameter | Value |
|---|---|
| Manufacturer | LEFIRCKO |
| Part ID | E18-D80NK |
| Detection Range | 3 cm to 80 cm (adjustable) |
| Operating Voltage | 5V to 24V DC |
| Output Type | Digital (High/Low) |
| Output Current | ≤ 100 mA |
| Response Time | ≤ 2 ms |
| Wavelength | 940 nm (infrared light) |
| Operating Temperature | -25°C to 55°C |
| Dimensions | 18 mm (diameter) x 45 mm (length) |
| Cable Length | 45 cm |
The E18-D80NK has a 3-wire interface for easy integration into circuits. The pinout is as follows:
| Wire Color | Function | Description |
|---|---|---|
| Brown | VCC | Connect to the positive supply voltage (5V to 24V). |
| Blue | GND | Connect to ground. |
| Black | Signal Output | Outputs a digital signal (High/Low) based on object detection. |
Below is an example of how to connect and use the E18-D80NK with an Arduino UNO:
// E18-D80NK Photoelectric Switch Example
// This code reads the sensor's output and prints the detection status to the Serial Monitor.
const int sensorPin = 2; // Digital pin connected to the sensor's black wire
int sensorState = 0; // Variable to store the sensor's state
void setup() {
pinMode(sensorPin, INPUT); // Set the sensor pin as an input
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
sensorState = digitalRead(sensorPin); // Read the sensor's output
if (sensorState == HIGH) {
// Object detected
Serial.println("Object detected!");
} else {
// No object detected
Serial.println("No object detected.");
}
delay(100); // Small delay to avoid flooding the Serial Monitor
}
Sensor Not Detecting Objects
False Detections
Output Signal Not Changing
Interference in Long Cables
Q1: Can the E18-D80NK detect transparent objects?
A1: Yes, the sensor can detect transparent objects, but its performance may vary depending on the object's material and thickness. Adjust the detection range for optimal results.
Q2: Is the sensor waterproof?
A2: The E18-D80NK is not fully waterproof. It is recommended to use it in dry environments or protect it with a waterproof enclosure.
Q3: Can I use the sensor with a 3.3V microcontroller?
A3: The sensor requires a minimum operating voltage of 5V. However, the output signal can be interfaced with a 3.3V microcontroller using a voltage divider or level shifter.
Q4: How do I extend the detection range beyond 80 cm?
A4: The E18-D80NK is limited to a maximum range of 80 cm. For longer ranges, consider using a different sensor model designed for extended distances.
This concludes the documentation for the E18-D80NK Photoelectric Switch. For further assistance, refer to the manufacturer's datasheet or contact LEFIRCKO support.