Infusion fluid is flowed through a fluid delivery line of an infusion system. Optical signals having different wavelengths are transmitted through the fluid delivery line. The transmitted optical signals having the different wavelengths are received. At least one processor determines whether air or infusion fluid is disposed in the fluid delivery line based on the received optical signals having the different wavelengths.