An electric gate opener is a device that automatically opens and closes a gate. It usually consists of a motor, controller, and sensors.
The motor is responsible for opening and closing the gate. The controller tells the motor when to start and stop.
And the sensors are used to detect when someone or something is trying to enter. They tell the controller when to start and stop the motor.