elevators

How do elevators know when to stop

How do elevators know when to stop?