5pcs/lot GP1A51HRJ00F Photoelectric switch is used for printers to detect the position of the print head drive motor
https://www.vogueparade.com/shopping/EN/150412/1/1005003420108096/5pcslot-gp1a51hrj00f-photoelectric-switch-is-used-for-printers-to-detect-the-position-of-the-print-head-drive-motor//