A medical apparatus (100) for extracorporeal blood treatment comprises a support structure (101) housing a hydraulic circuit (1) located above a liquid collection zone (103) such that liquid losses from the hydraulic circuit can at least partially accumulate at the liquid collection zone. A liquid sensor (108) detects presence of any liquid in the liquid collection zone and operates in a distanced position with respect to the liquid collection zone (103).