Sensors in automatic doors detect movement, pressure, or infrared pictures, causing the doors to open or shut.
The doors will open as soon as pressure or movement is sensed, and they will shut when the detectors can no longer sense anything. Different kinds of sensors operate in various ways.