A micro pH sensor is constructed by reacting powdered aminoalkylated cellulose with a dye to covalently bond the dye to the aminoalkyl groups on the cellulose. Any excess unreacted aminoalkyl groups are blocked with a blocking agent and the dye containing powdered cellulose is taken up in a solvent. A portion of the solvated dye containing cellulose is deposited in association with an optical fiber. The cellulose is regenerated into a solid matrix by acid treatment of the solvated dye containing cellulose to deposit the dye containing cellulose matrix on the optical fiber.