An atomizer includes a cartridge with a reservoir containing a fluid and a heating system configured to atomize the fluid into a vapor for inhalation. A respiratory indicator is configured to determine an inhalation period and an exhalation period of a patient using the atomizer. The atomizer then increases atomization of the vapor during the inhalation period and decreases atomization of the vapor during the exhalation period. An impedance sensor measures an amount of the fluid in the atomizer and deactivates atomization in response to an indication of a low fluid level.