Spectrometers decompose light into a rainbow of colors and then measure each color accurately. They are amazing and I have developed spectroscopy tools for analyzing plants and materials.