The humidity sensor is built up in a layer structure. The bottom layer forms the carrier. This is made of ceramic. A base electrode is applied to this carrier. The hygroscopic polymer layer is applied over this base electrode. A gas-permeable layer must be applied as a counter electrode so that the water vapor can get into this sensitive layer from outside.