An electronic cigarette and a method of controlling the electronic cigarette are disclosed, the electronic cigarette includes a controller; and at least one air pressure sensor coupled with the controller; the at least one air pressure sensor is configured for detecting a first air pressure in an air flow path of the electronic cigarette and a second air pressure of an ambient atmosphere where the electronic cigarette is located, and sending the first air pressure and the second air pressure to the controller; the controller is configured for receiving the second air pressure and the first air pressure and controlling an atomizer to be on/off based on a pressure differential between the first air pressure and the second air pressure.