A pharmaceutical dispenser with a housing, a medium reservoir, a discharge opening, connection channel connecting the medium reservoir to the discharge opening, and a detection device arranged in the area of the connection channel and designed to detect medium flowing therein. The connection channel is connected to and communicates with a pressure chamber, the detection device includes a membrane which delimits the pressure chamber, and includes an electrically conductive connection portion and is subjected to pressure. The detection device has an electrical mating contact surface in relation to which a membrane-side connection portion is movable when subjected to pressure, such that an electrical contact between the conductive connection portion and the mating contact surface is established or cancelled.