The device (1) has a plate (2) with an electronic circuit (3) comprising a conducting part (8) i.e. flat tinned copper, formed of a metallic film/wire. The part has conducting portions (12) distributed along a conductor path (13) presenting high resistance. The portions (12) are fixed on an edge of frangible portions (14) of a flexible support. The portions (12) are distributed corresponding to pills (4) such that the frangible portions are broken when the pills are extracted. A measurement unit (16) measures overall impedance of the part. A calculation unit deduces a pill extraction moment. An independent claim is also included for a method for measuring compliance of drug intake of a patient.