A device for detecting the relative humidity in a respiratory circuit is provided which includes a housing closed towards the outside by a transparent element, and towards the inside by a membrane permeable to the humidified gas passing through the equipment to which the device is applied and wherein the housing includes a humidity indicator element.