Device for clamping a flexible tube intended for determining the presence of said flexible tube in said clamping device, comprising: - a bearing element comprising a bearing surface against which said flexible tube is intended for being clamped, - a clamping element comprising a clamping surface facing the bearing surface, said clamping element being able to move with respect to said bearing element between at least one open position according to which the flexible tube placed between the bearing surface and the clamping surface is not deformed, an obturation position according to which the flexible tube placed between the bearing surface and the clamping surface is obstructed and characterised in that said clamping element also comprises a closed position according to which the bearing surface and the clamping surface are in contact, and also characterised in that the device for clamping also comprises: - a control unit, said control unit being configured to implement the following operations: - actuating the clamping element from the open position towards the closed position until the clamping element is blocked, - detecting the position of the clamping element thus blocked, - determining the presence or the absence of the flexible tube according to the position of the clamping element that has thus been detected. - a bearing element comprising a bearing surface against which said flexible tube is intended for being clamped, - a clamping element comprising a clamping surface facing the bearing surface, said clamping element being able to move with respect to said bearing element between at least one open position according to which the flexible tube placed between the bearing surface and the clamping surface is not deformed, an obturation position according to which the flexible tube placed between the bearing surface and the clamping surface is obstructed and characterised in that said clamping element also comprises a closed position according to which the bearing surface and the clamping surface are in contact, and also characterised in that the device for clamping also comprises: - a control unit, said control unit being configured to implement the following operations: - actuating the clamping element from the open position towards the closed position until the clamping element is blocked, - detecting the position of the clamping element thus blocked, - determining the presence or the absence of the flexible tube according to the position of the clamping element that has thus been detected. - a control unit, said control unit being configured to implement the following operations: - actuating the clamping element from the open position towards the closed position until the clamping element is blocked, - detecting the position of the clamping element thus blocked, - determining the presence or the absence of the flexible tube according to the position of the clamping element that has thus been detected. - actuating the clamping element from the open position towards the closed position until the clamping element is blocked, - detecting the position of the clamping element thus blocked, - determining the presence or the absence of the flexible tube according to the position of the clamping element that has thus been detected.