Learn how light-on and dark-on photoelectric sensor modes interact with through-beam, retroreflective, and diffuse sensing, PNP/NPN wiring, PLC logic, commissioning, and fault detection.