Devices and Code for Sleep Apnea