A microgel based optical cavity, properly functionalized to swell/collapse when exposed to biomolecules, charged polymers, and pH variations, is integrated onto an optical fiber tip, to realize a multi-functional lab-on fiber optrode for biochemical sensing.