A typical sealed mechanical switch will last you 10-15 years. you can use optical switches too like they use on the elevators or on a mouse wheel, to be honest I hate limit switches on our CNC routers sir, I took them all out, all 4 sets of them, there`s a lot of reasons why I need to take it out.