Pick up your orders anytime, hassle-free!
Orders placed by 2:00 PM are shipped the same day. Delivered within 24h!
Reliable products, worry-free!
Unused items? No questions asked!
E18-D80NK is a photoelectric sensor with diffuse reflection and an adjustable sensing distance of 3–80 cm, ideal for Arduino/DIY projects, conveyor belts, part counting, or non-contact presence/position detection. The adjustment is made via the built-in potentiometer, and the status LED quickly confirms triggering.
The sensor provides an NPN (open-collector), Normally Open (NO) output, easy to integrate both with microcontrollers and low-voltage automation circuits.
Performance varies with the target’s color and reflectivity—light/reflective surfaces are detected from a greater distance than dark/matte ones.
Purpose: read the sensor’s NPN output at 5 V.
Connections:
// E18-D80NK – read on D2 with internal pull-up
const int SENSOR_PIN = 2;
void setup() {
pinMode(SENSOR_PIN, INPUT_PULLUP); // enable 5V pull-up
Serial.begin(115200);
}
void loop() {
bool object_detected = (digitalRead(SENSOR_PIN) == LOW); // LOW = active
if (object_detected) {
Serial.println("Object detected!");
}
delay(50);
}
Best-practice recommendation: if you drive a load (relay, motor), use a separate transistor/driver or a relay module, and for electrical isolation use an optocoupler (e.g., PC817) between the sensor and the microcontroller.
Specific References
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent
Write your review
Review sent
Your review cannot be sent
Reference: GJJFDR_DHT11-module
Reference: DXWAWT_MPU-6050
check_circle
check_circle