how does an elevator door work
As well as the two previous answers earlier elevators used a light beam across the doors which when broken triggers the door opener. The other type used was in the door opening mechanism which sensed the extra resistance during door travel and opened the doors. These have been superseded by the infra red type.