This part is a kind of semiconductor called 42GRR-9002.
Function of this product has Photoelectric.
Manufacturers : Gerrie
Image and pinout :

Some of the text within the PDF file :
Photoelectric 42BC Long Range Background Suppression Sensing Mode Background Suppression Background Suppression Voltage 12-24 VDC 24-240 VAC/DC Sensing Distance 2m(6.6ft) 2m(6.6ft) Output Type NPN/PNP SPST Relay Output Energized Light/ Dark Selectable Light/ Dark Selectable Connection Type Screw Terminals Screw Terminals Part Number 42BC-B1LBAN-T4 42BC-B1CRAN-T4 42CM 18mm Metal Cylindrical Sensing Mode Standard Diffuse Polarized Retroreflective Diffuse Laser Voltage 10-30VDC 10-30VDC 10-30VDC Sensing Distance 400mm(13.6in) 3mm(0.12in) to 3m(9.9ft) 3mm(0.12in) to 300mm(11.8in) Output Type PNP PNP PNP Output Energized Light/ Dark Selectable Light/ Dark Selectable Light/ Dark Selectable Connection Type 4pin DC Micro 4pin DC Micro 4pin DC Micro Part Number [ ... ]
42GRR-9002 PDF Datasheet Download
