The introduction of electronics into a drug delivery device may introduce certain technical challenges, such as durability, electro-mechanical integration, and drug delivery performance. The present disclosure provides solutions for inclusion of an electronics module with an inhaler. For example, heat stakes may be used to secure a printed circuit board (PCB) to an electronics module's housing. Also for example, a slider may be used to transfer vertical movement of an inhaler's yoke to an electronics module's switch. Also for example, certain seals may be used when interfacing the electronics module to other portions of the device's housing to achieve a desired performance.