Continuous positive airway pressure (CPAP) machines are used by patients at home to treat sleep apnea. By delivering compressed air to the airways while a patient sleeps, CPAPs help prevent obstruction of the air passages when muscles become relaxed.