A device (10) for detecting the relative humidity in a respiratory circuit. The device (10) comprises a housing (11) closed towards the outside by a transparent element (12), and towards the inside by a membrane (14) permeable to the humidified gas passing through the equipment to which said device (10) is applied. The housing (11) comprises, inside, a humidity indicator element (13).