A dry powder or aerosol inhaler having attached thereto, in a detachable manner, a sound/vibration sensor adapted to sense sound/vibration in the interval of 100-3000 Hz and there from derive a parameter of a flow in a flow path of the inhaler. The sensor does not interfere with the flow path of the inhaler.