A device (100) for delivering medication to a user may include a main body (104), an electronics module (102), and a slider. The main body may include a mouthpiece (106), a medication reservoir, and a mouthpiece cover (108), where the mouthpiece cover may be hinged to the main body. The electronics module may include a communication circuit, a pressure sensor, and a switch. The slider may be configured to engage the switch when the mouthpiece cover moves from a closed position to an open position. The switch may be configured to switch the electronics module from an off state or a sleep state to an active state. The electronics module may be configured to never return to the off state after the mouthpiece cover is moved to expose the mouthpiece for the first time by the user.