The spectral properties of the molecules depend on the matrix in which it is present. The interaction of the molecule with the solute molecules affects the vibrational and rotational modes of the molecule. In this study, an absorption-based system was designed to show how the absorbance properties of glucose change in polyacrylamide hydrogel, and the measurements were performed at different wavelengths; 960 nm, 1450 nm, 1550 nm, and 1950 nm. It was observed that the system is sensitive to glucose at 1450 nm and 1950 nm wavelengths in polyacrylamide hydrogel, whereas it is only sensitive at 1450 nm in water which is due to the high absorbance of water at 1950 nm. In polyacrylamide hydrogel, water molecules mostly gather around the polymer chains via electrostatic interactions and the absorbance of water decreases which results in an increasing absorbance of glucose. According to the results, the responsivity of the system at 960 nm and 1550 nm, which are the wavelengths commonly used LED-based systems for measuring glucose in literature, is not high enough for reliable glucose measurements when compared with 1450 nm and 1950 nm.