Viable alternative to micro switches and limit switches