Glucose has specific frequencies at which it absorbs NIR depending on the C-C, C-H, O-H bonds. Although, glucose absorbs radiation principally in the mid infra red range there is also some absorption due to overtones of absorption frequencies in the near infra red range.
Different parts of light spectrum has different effects on molecules and atoms. Radio and microwave radiations excite molecular rotations; IR light excites molecular vibrations.
These interactions of light with matter are used to obtain chemical information about
the samples that light is interacting with. This chemical information can be qualitative to identify the constituents of a sample or quantitative to determine the concentration of constituents in the sample.
Glucose has frequencies which it absorbs IR depending on the C-C, C-H, O-H bonds present in it.