Spectrometer
The variable measured is most often the light's intensity but could also, for instance, be the polarization state. A spectrometer is used in spectroscopy for producing spectral lines and measuring their wavelengths and intensities.  Spectrometer is a term that is applied to instruments that operate over a very wide range of wavelengths, from gamma rays and X-rays into the far infrared.