Medical device comprising: A hard housing comprising a top hard shell and a bottom hard shell, within which a rigid wall and a movable membrane create three distinct chambers: i. a first chamber comprising a first venting means configured to provide a fluidic communication between the first chamber and the external environment of the medical device, ii. a second chamber designed to contain a fluid, and iii. a third chamber comprising a second venting means configured to provide a fluidic communication between the third chamber and the external environment of the medical device, Wherein the first chamber and the third chamber have a watertight interface and the second chamber is separated from the third chamber by the movable membrane; A pumping element Characterized in that the medical device further comprises: a. At least one pressure sensor which measures the pressure gradient between the first chamber and the second chamber or between the first chamber and the third chamber b. A fluid pathway which permits: i. a first fluid connection between said second chamber and said pumping element, ii. a second fluid connection between said pumping element and a patient line, and b. A processing means adapted to detect an under or over pressure in at least one of the chambers with respect to the external environment or to detect a clogging of at least one vent (7, 20). A hard housing comprising a top hard shell and a bottom hard shell, within which a rigid wall and a movable membrane create three distinct chambers: i. a first chamber comprising a first venting means configured to provide a fluidic communication between the first chamber and the external environment of the medical device, ii. a second chamber designed to contain a fluid, and iii. a third chamber comprising a second venting means configured to provide a fluidic communication between the third chamber and the external environment of the medical device, Wherein the first chamber and the third chamber have a watertight interface and the second chamber is separated from the third chamber by the movable membrane; i. a first chamber comprising a first venting means configured to provide a fluidic communication between the first chamber and the external environment of the medical device, ii. a second chamber designed to contain a fluid, and iii. a third chamber comprising a second venting means configured to provide a fluidic communication between the third chamber and the external environment of the medical device, A pumping element a. At least one pressure sensor which measures the pressure gradient between the first chamber and the second chamber or between the first chamber and the third chamber b. A fluid pathway which permits: i. a first fluid connection between said second chamber and said pumping element, ii. a second fluid connection between said pumping element and a patient line, and i. a first fluid connection between said second chamber and said pumping element, ii. a second fluid connection between said pumping element and a patient line, and b. A processing means adapted to detect an under or over pressure in at least one of the chambers with respect to the external environment or to detect a clogging of at least one vent (7, 20).