Keyence PZ-G61N Square Retro-Reflective Photoelectric Sensor Switch Type NPN.
Sensor was taken from working machine. Function was confirmed before removing. Comes with protective bracket. This type works with a reflector (not included)