A medical device, for example, an anesthesia apparatus or ventilator, including a hot wire sensor (10); a hot wire sensor (10) and a hot wire module (14) for a hot wire sensor (10) are provided. A first hot wire and a second hot wire (26, 28), namely, a measuring wire (26) and a compensation wire (28), are connectable to the hot wire sensor (10), for example, in the form of a hot wire module (14), in an electrically conductive manner. A first contact pair (52, 54) is associated with the measuring wire (26) for contacting same and a second contact pair (56, 58) is associated with the compensation wire (28) for contacting same. The contacts of the second contact pair (56, 58) are configured as leading contacts in relation to at least one of the contacts of the first contact pair (52, 54).