A sensor system (1000) for a dry powder inhaler (900) comprising:a detachable device (1000) configured to attach to the dry powder inhaler (900), the detachable device (1000) including at least one sensor (1202) configured to detect in real time at least one signal generated by the dry powder inhaler (900) during an inhalation maneuver.