Or you could buy these proximity switches http://www.worldofcnc.com/collection...ty-home-switch