The invention relates to a method of controlling a smoke generator. The smoke generator is adapted to be connected to a supply of a pressurized gas and a supply of a smoke liquid and further comprises a valve to regulate the pressure of the gas, a fluid driving means, a mixing unit for mixing the smoke liquid and the gas, and a heat exchanger heating the mixture of the pressurized gas and the smoke liquid to vaporize the smoke liquid and form a smoke upon ejection into surrounding air. The control method according to the invention then comprises the steps of receiving a smoke density parameter indicative of a desired amount of smoke to be generated by the smoke generator, measuring a gas pressure at a position between the valve and the heat exchanger, and using these parameters in controlling the valve.The invention further relates to a smoke generator arranged for performing the control method.