Choosing between a general-purpose photoelectric sensor and a safety magnetic sensor comes down to one question: are you trying to detect something or protect someone near moving machinery? The Photoelectric Switch 12mm 636V 020M Laser Sensor NPN covers detection and outdoor automation jobs, while the SCHMERSAL SAFETY MAGNETIC SENSOR BNS33-11ZG-2128 with Magnet Actuator is designed for interlocking guards. Match the sensor to the hazard, not the other way around.
Quick verdict
If you need a long-range presence sensor for general detection work, choose the Photoelectric Switch 12mm at USD 39.72. Its 0-20M sensing range and IP66 weather protection make it a strong all-around option. If your job is machine guarding, choose the Schmersal BNS33-11ZG-2128 at USD 215.00. It is a coded-magnet safety magnetic sensor with IP67 sealing.
At a glance
| Sensor | Listed price | Best fit |
|---|---|---|
| Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor | USD 39.72 | Long-range presence detection and positioning |
| SCHMERSAL SAFETY MAGNETIC SENSOR BNS33-11ZG-2128 with Magnet Actuator | USD 215.00 | Safety interlocking applications |
Where the Photoelectric Switch wins
The photoelectric switch wins when reach and versatility matter more than safety interlocks. It uses a through-beam reflection style with an NPN output, a normally open contact, and weatherproof construction for indoor/outdoor use. That makes it useful for limit detection, positioning, counting, speed measurement, and personnel passing in automated setups. It is also the more economical way to get that kind of reach, leaving a smaller share of the project budget for the sensing function.
Where the Schmersal wins
The Schmersal takes over when the application is machine safety rather than basic detection. This sensor set pairs a reed switch unit with a magnet actuator, and the contacts close only in the presence of their matched magnetic field array. That dedicated pairing, plus the 1NO/1NC contact configuration, makes it suited for interlock duty. A weathertight enclosure, 10 A at 24 VDC, an M8 4-pin connector, and cable termination round out a package built for safety-related guarding.
Product notes
Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor

The detection reach is the headline here, and the IP66 weatherproofing means this 12mm photoelectric switch can handle exposed outdoor gates and garage doors as well as other industrial sensing jobs. The normally open stainless steel contact and NPN output fit simple detection circuits. It uses an RCA connector and a 1-way circuit, so it is best thought of as a general-purpose photoelectric sensor rather than a safety sensor. If your project is about detecting presence or movement across a distance, this is the sensor that covers the most ground for general detection duties.
SCHMERSAL SAFETY MAGNETIC SENSOR BNS33-11ZG-2128 with Magnet Actuator

This is the specialist. The Schmersal includes both the safety sensor and its magnet actuator, and the pair is designed to work only with each other. It is a safety magnetic sensor with 1NO/1NC contacts, an M8 4-pin connector, cable termination, and a thermoplastic enclosure sealed to IP67. Rated for 10 A at 24 VDC and made in Germany, it is meant for movable machine guards and articulated robot arms where a safety interlock switch is required. It arrives in new but open-box condition. The main limitation is that level of specialization: for basic detection duty, the safety interlock capability is more than the job needs.
Final choice by use case
Choose the Photoelectric Switch 12mm for outdoor gate and garage door work, presence detection, counting, speed measurement, and general industrial sensing where a long 0-20M range and weather resistance are the priorities. Choose the SCHMERSAL BNS33-11ZG-2128 for safety interlock applications. If the task is detecting something, go photoelectric. If the task is protecting someone, go Schmersal.