Bubble monitoring component 408 can determine the presence of bubbles in the immersion medium 402 by comparing characteristics such as wavelength, phase and/or intensity of the light received at various locations within optical detector 416 to set of reference characteristics determined when bubbles were not present in the immersion medium.