Patients are given a special device to be worn while sleeping, along with instructions for its use at home. In most cases, the device will record your snoring, heart rate, and blood oxygen levels. You then return the device, either to your doctor's office or through the mail to a vendor, and the data is analyzed..