During a polysomnography, sensors are placed on the patient's scalp, temples, chest, and legs. These sensors monitor various physiological parameters throughout the night. The data collected helps in diagnosing conditions such as sleep apnea, narcolepsy, and restless legs syndrome.