mechanics

How do elevators know when to stop?