What you want is not a Hall Effect (HE) sensor, but a Proximity Switch. Just type Proximity Switch into your favorite online crap store. Or, you could devise a system whereby your CNC gantry pushes a magnet away from the HE sensor.
Fyi, the nature of the Hall Effect is that a magnetic field...