See Brady Products
Diffuse Sensors With Background Suppression - Subminiature - 10 to 60 mm - PNP - Light / Dark Operate - Flylead Connector M8 4 pin - L=200 mm - IP65.