A humidifier for humidifying air to be delivered to a patient's airway can include a humidification chamber, a reservoir, and a water ejection mechanism. The humidification chamber can include a water retention function such as a wick, a heating element that heats the humidification chamber, and a baffle that is placed in an air stream configured to facilitate humidification. The humidifier can be further configured to execute one or more algorithms, for example, to determine humidifier conditions and / or mitigate any detected faults. In some forms, the humidifier can also include an algorithm for controlling one or more components of the humidifier.患者の気道に送達する空気の加湿のための加湿器は、加湿チャンバー、リザーバおよび水吐出メカニズムを含むことができる。加湿チャンバーはウイックのような水保持機能、加湿チャンバーを加熱する加熱エレメントおよび加湿を促進するように構成された空気の流れに置くバッフルを含むことができる。加湿器は、例えば加湿器の条件を決定したりおよび/または検出した任意の故障を緩和するために、1つまたはそれ以上のアルゴリズムを実行するようにさらに構成できる。いくつかの形態において加湿器は、加湿器の1つまたはそれ以上のコンポーネンツを制御するためのアルゴリズムを含むこともできる。