Measurement device (1) for measuring the exhale capacity of a patient, whereby the measurement device comprises a main body (2) with a through hole (3) with a blowing device (17) which has a rotation device (20) which is put in rotary motion through blowing, with a rotary speed depending on the intensity of the blowing, and the rotation of which is sensed by an optical sensor (6). The invention is characterised in that the measuring device comprises a cable (11) which is connected to the main body of the measurement device, and with a free end (lib) which is arranged to be connected to an audio input of a handheld general purpose computer unit (14), and in that the measurement device is arranged to, to the handheld computer unit, continuously deliver an analogue electric signal which carries information about rotary speed or air flow. The invention also relates to a piece of software as well as to a method.