There is provided a control unit for controlling the operation of a nebulizer, the nebulizer comprising a reservoir chamber for storing a liquid to be nebulised, an actuator, and a nebulizing element comprising a plurality of nozzles arranged to nebulize the liquid upon operation of the actuator wherein the control unit is configured to obtain an indication of the size of the nozzles in the nebulizing element and control the operation of the actuator based on the obtained indication to provide nebulised liquid at a required output rate and/or with droplets of a required size.