I would like to replace my 7 lever type limit switches with proximity switches but I never used them before and I have no idea what to look for. From my search I understand that I need 3 wire NPN type since I will connect them to G540 but there is much more info needed.

Digikey site has a lot of them but I don’t know which one to select. Anyone has a model number which will be suitable for a cnc router application?

And what kind of cable I need? Would a 3 or 4 conductor 20AWG shielded cable will be sufficient?