for schematic of my project I need this exact optical endstop and I cannot find it anywhere. Could someone help please?
This part should do what you want. Pcb is only an outline of the board and mounting holes (no connectors) which won’t be drilled. You would need to drag a hole over the pad in silkscreen and set the correct size to get a drilled hole.
MakerHawk-optical-endstop.fzpz (6.8 KB)