I agree with @RobertCanning use what works best for you.
I have and have used limit switches but they are not the solve all of every thing.
I have and have used a removable bump stop, but it is not the solve all of every thing.
I have and have used @CharleyThomas touch plate, it really is great, but again it is not the solve all of every thing.
every thing has it own unique problems and assets. it is up to you to learn what works for you and in which situation to make the best of it.
a lot of people are commenting like there is only one way to accomplish these task, and while that might work for you and what you do, I find it hard to believe that it would always work for all situations.
try several approaches and learn them as they will most likely come to use some time or another.