Logic & Relay

Photoelectric Switch vs EC11 Rotary Encoder: Which Sensor Matches Your Build?

A photoelectric sensor and a rotary encoder solve different problems in sensors and machine safety. This head-to-head compares 12mm 636V 020M laser NPN switch with the EC11 360-degree rotary encoder on price, mounting, output, and best use.

Last updated Aug 17, 2026

Choosing between a photoelectric switch and a rotary encoder can feel like comparing two different languages, but both belong in the same conversation when you're working on sensors, encoders, and machine safety. One detects the presence of an object with a laser beam; the other turns shaft rotation into a signal your controller can read. The Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor and the EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft are built for completely different jobs, and the right choice depends on what you are trying to sense.

Quick verdict

If your project needs to detect an object or person passing through a beam, the Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor is the right choice. If your project needs to read shaft rotation for a control knob or menu wheel, the EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft is the practical, low-cost pick.

At a glance

| Feature | Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor | EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft |

| Price | USD 39.72 | USD 2.50 |

| Primary role | Through-beam/reflection object detection | Rotary position/rotation with push-to-actuate switch |

| Output | NPN, normally open | Mechanical, 20 pulses per revolution, push momentary switch |

| Mounting | 12mm sensor body | PCB mount, 7 pins, through hole |

| Electrical supply | 6-36V | 5V @ 10mA switch contacts |

| Range | 0-20M | 360-degree rotation |

Where each product wins

The Photoelectric Switch wins when you need non-contact detection over a long distance, weatherproof construction, and an NPN signal for industrial automation. The EC11 wins when you need a compact, PCB-friendly rotary encoder, especially when budget matters.

Product notes

Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor

Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor

The 12mm 636V 020M laser sensor is built for detection jobs where a beam of light acts as a switch. It offers a 0-20M detection range, NPN output, normally open contact, and a 6-36V supply range, making it suitable for gates, garage doors, and industrial sensing tasks like positioning, counting, and speed measurement. The IP66 weatherproof construction is a concrete advantage for installations exposed to rain or dust. Choose this sensor when you need to detect an object or person passing through a beam and send that signal into an automation system. At USD 39.72, it is the more expensive component in this comparison, and it does not track rotation. If your project only needs shaft position feedback, this sensor is not the right tool.

EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft

1 Pc - EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft

The EC11 is a 360-degree rotary encoder with a D shaft and a push-to-actuate switch, packaged as a PCB-mount component with seven pins and through-hole design. The mechanical switch produces 20 pulses per revolution, giving directional rotation feedback, and the push function adds a momentary switch action for menu selection or activation. Its 15 mm shaft length makes it a natural fit for control knobs on panels or hobby electronics. The switch contacts are rated for 5V at 10mA, so plan your interface circuits accordingly. The EC11 fits projects where rotation feedback matters more than detection. It cannot sense objects or count passing items on its own; it simply reports its own shaft position.

Final choice by use case

Pick the Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial Sensor when you need non-contact detection over distance, especially for outdoor gates, garage doors, or machine automation where a through-beam or reflection sensor is the right safety input. Pick the EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft when you are building a user interface or a shaft-position feedback loop and need a compact, affordable rotary encoder. If budget is the main driver and your application involves rotation, the EC11 is the clear choice; if the job is detecting a beam break, the photoelectric switch is the only one that fits.

Products in this article
Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial SensorUSD 39.72View on eBay1 Pc - EC11 360 Degree Rotary Encoder PCB Mount Push Switch D ShaftUSD 2.50View on eBay
Photoelectric Switch 12mm 636V 020M Laser Sensor NPN Industrial SensorUSD 39.72View on eBay1 Pc - EC11 360 Degree Rotary Encoder PCB Mount Push Switch D ShaftUSD 2.50View on eBay

You may also like

Finding more guides for you…