There's an accelerometer to detect how fast the door is opening and a second sensor to see if anything is in the door's path.