These objects and other are solved by the present invention which in one aspect is an apparatus for measuring relative humidity of a mixture comprising: a chamber having a chamber volume and an opening; a membrane covering the opening, the membrane being permeable to water vapor while impermeable to liquid water; a humidity sensor in the chamber volume for producing a first signal relating to rela