Fluorescence is a long established measurement technique and the most widespread technique for measuring oil in water.
The measurement principle is based upon a physical characteristic of aromatic hydrocarbons. When exposed to UV or low blue light, the aromatic hydrocarbons absorb the energy from that light (excitation) and give off light of a different wavelength (emission). The amount of light emitted helps determine the amount of oil present in the water.