Your doctor will use a machine for your sleep study. The machine helps to monitor the activity of your brain, eye movements, and other body movements while you sleep.