Example techniques and systems include detecting patient inhalation with a pulmonary medication dosing device and controlling a valve to release medication based on the detection. For example, a method includes generating a signal indicative of air flow within a portion of a pulmonary medication dosing device, receiving, by a processor, a command based on the signal and associated with a valve configured to at least partially control release of medication via the pulmonary medication dosing device, and controlling, by the processor and based on the received command, the valve to release at least a portion of a dose of the medication into the air flow. In some examples, a mobile computing device may be configured to generate and transmit the command to the pulmonary medication dosing device for controlling the valve.