A device for measuring moisture is described. This device includes a sensor unit (1) having a moisture-sensitive sensor element (1.1) and a carrier element (2), upon which the sensor unit is mounted. The carrier element (2), as well as the sensor unit (1) have electrical contact regions (1.2a, 1.2b). Carrier element (2) has a recess (6), above which the sensor unit (1) is mounted. The moisture-sensitive sensor element (1.1) is oriented in the direction of the recess (6). The sensor-side contact regions are formed on the side of the sensor unit (1) facing the carrier element (2). In at least one partial region adjacent to the sensor unit (1), the carrier element (2) is provided with a coating (3) which absorbs and/or releases as little moisture as possible.