limit switch
  • A switch that is actuated when a given limit is reached. For instance, a switch that cuts off power to a device when a moving part moves past a given point of its travel.

Not what you were looking for?