A spectrometer includes an illuminating section; a receiving section configured to detect radiation reflected from an object including an optically inhomogeneous scattering medium; a hardware section configured to obtain a solution of an inverse problem to reconstruct an absorption spectrum of the optically inhomogeneous scattering medium, wherein the illuminating section includes at least one light-emitting diode source, a radiation spectral curve of which is divided, by at least two spectral filters having different spectral transmission curves, into at least two spectral regions, to form an equivalent radiation spectrum from at least two spectral sources, and wherein the hardware section applies the solution of the inverse problem based on information about a spectral content of the radiation of the illuminating section, a signal obtained in a form of a response from the optically inhomogeneous scattering medium, and a spectral sensitivity curve of the receiving section.