Just to re-iterate, I would use 3 (x,y,z) proximity sensors for homing and software limits for emergency stops...