Hello,
I'm building a CNC machine, I completed the mechanic steps, now I have to connect the electric components ! =)
And I have a problem with my optical switch V19 1028 (https://www.amazon.fr/pi%C3%A8ces-Op.../dp/B079RC2PHN)
And my board is a 4 axis USB Mach3 (https://www.sainsmart.com/products/4...breakout-board)

This board have powered input ( 22v ), when a limit switch is reached it connect the pin to the ground.

But my optical switch are providing in off state 0.3V and in on state 5V.

I guess I should use a transistor with the base connect to the signal from the optical switch ....
But I don't know how to chose the components and how to wire =(
Thank you in advance to help. I hope It was clear =)

Tony,