An NMR spectrometer is a scientific instrument used to measure the magnetic properties of atomic nuclei, primarily hydrogen, to provide detailed information about the structure and dynamics of molecules. It operates by applying a strong magnetic field and radiofrequency radiation, which causes the nuclei to resonate and produce signals that can be analyzed for molecular identification and characterization.