Explain briefly how an infrared spectrometer works. Please help immediately!!! :(

Infrared (IR) spectroscopy uses infrared radiation to excite the molecules of a compound and generates an infrared spectrum of the energy absorbed by a molecule as a function of the frequency or wavelength of light.