M18 Photoelectric Sensor PNP NO+NC 10-30VDC | Compoden
M18 Photoelectric Sensor – PNP NO + NC, 10-30VDC
The M18 photoelectric sensor with PNP output (NO + NC) is a diffuse reflective sensor designed for non-contact object detection up to 20cm. It operates on a wide 10-30VDC supply and can switch loads up to 300mA, making it suitable for industrial automation, conveyor systems, and object counting applications. Its M18 threaded metal housing ensures reliable performance in dusty or wet environments.
Key Specifications
| Specification | Value |
|---|---|
| Sensing method | Diffuse reflective |
| Sensing distance | 20cm (adjustable) |
| Output type | PNP, NO + NC |
| Supply voltage | 10-30VDC |
| Max load current | 300mA |
| Housing material | Nickel-plated brass |
What You Can Build With This
- Conveyor belt object counting system with Arduino and relay output
- Automatic door opener triggered by presence detection
- Bottle filling line position sensor for PLC-based control
- DIY garage parking assistant with LED indicators
- Liquid level detection in tanks using a reflective target
Compatibility
This sensor works with any 10-30VDC industrial controller or PLC. For microcontroller projects (Arduino, ESP32, Raspberry Pi), a voltage divider (e.g., 10kΩ + 5kΩ) or optocoupler is necessary to step down the PNP output (which switches to V+) to a safe 5V or 3.3V logic level. It pairs well with relay modules for driving heavier loads.
Wiring Notes
Standard 3-wire connection: Brown = +10-30VDC, Blue = 0V/GND, Black = signal output (PNP, active high). Use a 0.1µF capacitor across the supply lines near the sensor to reduce electrical noise. Do not exceed 300mA load current; use an external relay for higher currents.
Why Buy from Compoden
Every component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.
Is this compatible with Arduino?
Yes, but requires a voltage divider (10kΩ + 5kΩ) or logic level converter to step down the 10-30V output to 5V for Arduino input pins.
Can this sensor detect transparent objects?
Diffuse reflective sensors may struggle with transparent or highly reflective items. For reliable detection of transparent materials, consider a through-beam sensor.
What is the difference between NO and NC outputs?
NO (normally open) output is off when no object is present and turns on upon detection. NC (normally closed) is the opposite: on when clear, off when an object is detected. This sensor provides both signals simultaneously.
📦 Free Setup Handoff Document Included
Every Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.
Ask Soldr above what you can build with this — it knows every Compoden kit this part appears in.
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items