In this Everyday Unpacked video, the channel explores “How Automatic Doors Sense People”.
From the YouTube description
An overhead sensor can detect an approaching person and tell the door to open. A separate safety sensor can keep it from closing while someone is in the doorway.