An improved humidification method and apparatus for use with a CPAP type machine in which humidified air is delivered to the patient only during the inhalation phase and non-humidified air is delivered to the patient during the exhalation phase. The invention consists of a valve apparatus to switch from humidified air to non-humidified air and a method of determining when to switch the state of the valve.