IV pumps function by using a motor-driven mechanism to push fluids from an IV bag through a tube and into the patient's vein. The infusion rate and volume are set by healthcare professionals, and the pump continuously monitors and adjusts the flow to maintain the desired rate. Some advanced models can even detect and alert the caregiver to any occlusion or air bubbles in the line, which are critical safety features in neonatal care.