An aerosol delivery device comprising control circuitry 550 for controlling an operating mode of the device, a motion sensor 560 arranged to detect motion of the device and to output corresponding motion detection signals to the control circuitry, and an airflow sensor 215 arranged to detect a flow of air in the device and to output corresponding airflow detection signals to the control circuitry wherein the control circuitry is configured to determine from the motion detection signals when there is a tapping event corresponding to the device being tapped by a user and to determine from the airflow detection signals when there is an airflow event corresponding a flow of air in the device, and wherein the control circuitry is configured to control the device to switch from a first operating mode to a second operating mode in response to the detection of a predefined sequence of events comprising at least one tapping event and at least one airflow event. The air flow sensor may be a pressure sensor. The device may further comprise a heater which is activated by the control circuitry depending upon the operating mode. The device maybe an electronic cigarette or e-cigarette.