A technique for automatic tubing occlusion in response to air bubble detection when using a centrifugal pump.