Here’s some home switches for a cnc or 3d printer, opensource hall effect switch
I built a bunch of these and have since installed them on the cnc at work and on my new prusa v2 reprap build. There great, I love the versatility of using the magnet as the switch, i’m able to tape or glue or if there’s some metal frame nearby just stick it to it. Plus the little light to let you know its on is nice. Mine are uv LEDs. I almost wonder why people still use the optical endstops, they definitely cost more.
In that picture you can see the y and the z the little magnet for y is on the bottom bolt on the heatbed, I havn’t quite figured out how to mount the z or x one yet, yeah g92 x0y0z0.