Recording the spectrometer signal under identical measurement conditions, but without the light source to determine the detector offset to be subtracted from the sample spectrum.