We read here you have a SN04 Proximity sensor, It would help if you stated what 3D Printer you have.
A few pictures of your 3D Printer could also be helpful if they show optional hardware.