Spectral detectors operate by measuring the interaction of light with molecules. When light passes through a sample, it can be absorbed at specific wavelengths, which are characteristic of particular chemical bonds. This absorption creates a spectrum, a unique fingerprint that can be used to identify and quantify compounds in a sample. Common techniques include UV/Vis spectroscopy, infrared (IR) spectroscopy, and mass spectrometry.