A method of controlling aerosol production in an aerosol-generating device is provided, the device including a powered aerosol generating element, a flow channel to allow a flow of gas past the element, and a flow sensor to detect air flow in the flow channel, the method including: determining a value of a first parameter related to a change in flow rate; and reducing a supply of power to the element depending on a comparison result between the first parameter value and a threshold value, the first parameter being derived from a combination of a second parameter that is a measure of a flow rate detected by the flow sensor and a third parameter related to the flow rate. Also provided is a method of reducing or suspending aerosol production, based not simply on a detected flow rate, but on another measure indicative of the evolution of the flow characteristics.