We present a fiber-optic wavelength-modulated sensor for pH applications. Fiber Bragg grating (FBG) is functionalized with a stimulus-responsive hydrogel that induces a strain on FBG due to mechanical expansion of the gel in response to ambient pH changes. The gel is synthesized from the blends of poly (vinyl alcohol)/poly (acrylic acid). The induced strain results in a shift of FBG reflected peak that is monitored by an interrogator. The sensor system shows good linearity in the acidic pH range of 3 to 7 with a sensitivity of . In addition, it shows good repeatability and oscillator behavior, which proves it to be fit for pH sensing applications.