CPAP machines are used to treat both obstructive and central sleep apnea. In both disorders, your breathing is interrupted during the sleep cycle. This can occur hundreds of times in a single night, leading to a lack of oxygen and a higher risk for high blood pressure, heart disease, stroke, diabetes and other health concerns.of shallow breaths or