The sensors on an automatic door are responsible for detecting motion and triggering the opening and closing mechanisms. If these sensors malfunction, they may detect motion when there is none, causing the door to open and close repeatedly.