A nebulizer device includes an air intake port positioned downstream of a nebulizer element, and a mouthpiece positioned upstream of the nebulizer element. A flow sensor is coupled to a controller. The controller is configured to integrate an inhaled air flow signal received from the flow sensor for determining an inhaled air volume. The controller is also configured to turn on the nebulizer element when the inhaled air volume reaches a first predetermined threshold, and turn off the nebulizer element when the inhaled air volume reaches a second predetermined threshold. A method for targeted delivery of aerosolized particles to the lungs is also disclosed.