A device for a medical treatment apparatus, the device configured for measuring a flow of liquids in a lumen of a tube when the tube is inserted in the device, the device comprising a first guide side, a second guide side, and a first ultrasonic transducer, wherein a receptacle is defined in the device in between the first guide side and the second guide side, wherein the receptacle defines a trapezoidal shape configured to receive the tube therein such that the lumen of the tube has approximately a trapezoidal course when the tube is inserted in the receptacle of the device, wherein the first ultrasonic transducer is arranged at a first trapezoid corner of the receptacle, wherein the first ultrasonic transducer in operation is designed to perform a measurement in or against a direction of flow in the lumen, wherein the first guide side and the second guide side are capable of being displaced relative to one another, and the first guide side and the second guide side are configured to exert a defined and/or settable force that effects a deformation of the lumen when the tube is inserted in the receptacle of the device.