End-stops vs Encoders

I have used (and seen used on professional CNC machines) these end-stops:-

They’re magnetic sensors, pretty sure they would be solid state so no moving parts to wear out. They’re sealed so suitable for operation in most environments. The receiver is normally open, so you just connect them to the RAMPS board as indicated somewhere in the documents, organised so that they switch to 5V when activated. Last time I tried them with the farmbot software they were detected reliably for homing, but not so in normal operation. But homing is when they should be used to get the best accuracy. The farmbot homing sequence isn’t as accurate as it could be, but you’ll need to make a feature request to get them to improve their homing sequence (or make the changes yourself).

Others may have alternative/better suggestions…