Hydrogel optical fibers are utilized for continuous glucose sensing in real time. The hydrogel fibers consist of poly(acrylamide-co-poly(ethylene glycol) diacrylate) cores functionalized with phenylboronic acid. The complexation of the phenylboronic acid and cis-diol groups of glucose enables reversible changes of the hydrogel fiber diameter. The analyses of light propagation loss allow for quantitative glucose measurements within the physiological range.