limit switch

A safety device fitted to electrically operated lifts, travelling cranes etc which prevents them passing a certain point by cutting off the power supply.