A humidifier for humidification of air to be delivered to a patient’s airways may include a humidification chamber, a reservoir and a water delivery mechanism. The humidification chamber may include a water retention feature such as a wick, a heating element for heating the humidification chamber, and an air flow baffle configured to promote humidification. The humidifier may be further configured to execute one or more algorithms, for example to determine a condition of the humidifier and/or to mitigate any detected faults. In some forms, the humidifier may also comprise algorithms for controlling one or more components of the humidifier.一種用於增濕輸送給患者呼吸道的空氣之增濕器,其包括一增濕室、一儲液槽與一輸水機構。該增濕室可包括:一水保持特徵件,諸如一毛細體;一加熱元件,用於加熱該增濕室;及一空氣流阻流板,其構成增進濕化。該增濕器可更構成執行一或多個演算法,例如決定該增濕器的一狀況及/或減輕任何檢測的錯誤。在某些形式,該增濕器亦可包括控制演算法,用於控制該增濕器的一或多個組件。