The present invention relates to an optical H+-sensor, comprising an H+-indicator material, wherein the H+-indicator material is present between a support material and a H+-permeable layered structure, the layered structure comprising an H+-permeable hydrophilic layer and an H+-permeable cation exchange layer.