The diagram below shows how to connect a proximity sensor such as the SN04-N to the Buildbotics CNC controller.
Because the Buildbotics controller only supplies 5V out on the I/O breakout connector, you must wire the proximity sensors directly to the power supply.