A system for treating a medical condition in a subject using an aerosolized solution includes a subject interface, an inspiratory limb in fluid communication with the subject interface, an expiratory limb in fluid communication with the subject interface, and a controller in electrical communication with the inspiratory and expiratory limbs. The inspiratory limb includes an aerosol-generating device configured to provide the aerosolized solution. The controller is configured to automatically regulate at least one treatment parameter based on feedback from one or more sensors operably integrated into the inspiratory limb and/or the expiratory limb. The at least one treatment parameter is selected from the group consisting of the amount, rate, and temperature of the aerosolized solution.