A medical fluid infusion system includes a pump system configured to deliver a fluid drug to a patient. The system includes a device and method for detecting when the level of a fluid in a fluid supply container (such as an IV bag) is exhausted or near exhausted.