A method for detecting air bubbles in a blood flow path (206, 207, 208, 209) using at least one light emitter (204, 205) to generate different wavelengths and at least one photosensor (210, 211), the method comprising: setting initial intensities of light at a first wavelength emanating from the at least one light emitter (204, 205) and of light at a second wavelength emanating from the at least one light emitter (204, 205); determining intensities of the light at the first wavelength and of the light at the second wavelength received at the at least one photosensor (210, 211), wherein the light at the first wavelength and the light at the second wavelength received at the at least one photosensor (210, 211) traverses the blood flow path (206, 207, 208, 209); determining a normalized ratio between an absorbance for the light at the first wavelength and an absorbance for the light at the second wavelength using the initial intensities of the light at the first wavelength and of the light at the second wavelength emanating from the at least one light emitter (204, 205) and the intensities of the light at the first wavelength and of the light at the second wavelength received at the at least one photosensor (210, 211), wherein the absorbance for the light at the first wavelength is obtained by subtracting the intensity of the light at the first wavelength at the at least one photosensor (210, 211) from the initial intensity of the light at the first wavelength emanating from the at least one light emitter (204, 205), and wherein the absorbance for the light at the second wavelength is obtained by subtracting the intensity of the light at the second wavelength at the at least one photosensor (210, 211) from the initial intensity of the light at the second wavelength emanating from the at least one light emitter (204, 205); and determining whether an air bubble is present in the blood flow path (206, 207, 208, 209) based on the determined normalized ratio by determining a change in the normalized ratio and a normalized ratio at a previous time period, wherein the air bubble is present if the change meets or exceeds a predetermined threshold. setting initial intensities of light at a first wavelength emanating from the at least one light emitter (204, 205) and of light at a second wavelength emanating from the at least one light emitter (204, 205); determining intensities of the light at the first wavelength and of the light at the second wavelength received at the at least one photosensor (210, 211), wherein the light at the first wavelength and the light at the second wavelength received at the at least one photosensor (210, 211) traverses the blood flow path (206, 207, 208, 209); determining a normalized ratio between an absorbance for the light at the first wavelength and an absorbance for the light at the second wavelength using the initial intensities of the light at the first wavelength and of the light at the second wavelength emanating from the at least one light emitter (204, 205) and the intensities of the light at the first wavelength and of the light at the second wavelength received at the at least one photosensor (210, 211), wherein the absorbance for the light at the first wavelength is obtained by subtracting the intensity of the light at the first wavelength at the at least one photosensor (210, 211) from the initial intensity of the light at the first wavelength emanating from the at least one light emitter (204, 205), and wherein the absorbance for the light at the second wavelength is obtained by subtracting the intensity of the light at the second wavelength at the at least one photosensor (210, 211) from the initial intensity of the light at the second wavelength emanating from the at least one light emitter (204, 205); and determining whether an air bubble is present in the blood flow path (206, 207, 208, 209) based on the determined normalized ratio by determining a change in the normalized ratio and a normalized ratio at a previous time period, wherein the air bubble is present if the change meets or exceeds a predetermined threshold.