Which instrument is used for measuring the spectrum of light?

Stethoscope

Saccharimeter

Spectrometer

Sextant