M12 5-pin photoelectric sensors include a teach input for sensitivity adjustment in addition to power, ground, and two output channels, enabling both light-on and dark-on operation from a single sensor.
| Pin | Name | Function | Type |
|---|---|---|---|
| 1 | VCC | Supply voltage brown | PWR |
| 2 | OUT2 | Second output or alarm white | I/O |
| 3 | GND | Ground blue | GND |
| 4 | OUT1 | Primary NPN or PNP output black | I/O |
| 5 | TEACH | Sensitivity teach input gray | I/O |