Various embodiments include an inhaler for oral delivery of medication that includes an actuation detector configured to provide an actuation signal in response to release of the medication from the inhaler and an accelerometer configured to measure an orientation of the inhaler. The inhaler may include a processor coupled to the actuation detector and the accelerometer configured with processor executable instructions to perform operations to determine a quality of use of the inhaler based on the actuation signal provided by the actuation detector and the orientation of the inhaler measured by the accelerometer. Fig.1A