The authors describe a new device for weaning from mechanical ventilation, based on continuous measurement of end-expiratory concentration of CO 2 (FCO 2 ET). The spontaneous or controlled mode of ventilation is automatically determined by the level of FCO 2 ET in relation to preselected maximum and minimum thresholds. The authors call this device "CO 2MV".