Galvanic solid electrolyte sensor for measuring gaseous anhydrides, comprising a ceramic solid electrolyte, that has a material that conducts electrons, a measuring electrode that includes a pure or doped alkaline or alkaline earth salt, a reference electrode spatially separated from said measuring electrode and sealed off from the anhydride measuring gas by a gas-tight enclosure, said reference electrode being made of a metal material that conducts electrons, characterized in that the gas-tight enclosure comprises a layer of a glass containing zirconium and lead that covers only the material of the reference electrode that conducts electrons, with only a marginal area of this layer abutting the solid electrolyte.