Spectrometers are used to measure the intensity of electromagnetic radiation, as a function of its wavelength.