Spectroscopic sensors operate by directing a beam of light at a sample and measuring the intensity of light that is transmitted, absorbed, or scattered. The resulting spectra provide information about the sample's molecular structure, concentration, and dynamics. For example, in UV-Vis spectroscopy, the absorption of light at specific wavelengths corresponds to electronic transitions within the sample, revealing information about its electronic structure.