The nervous system receives millions of bits of sensory information per minute and integrates them to determine responses. The basic functional unit of the brain is neurons, which communicate via electrical signals. An electroencephalogram (EEG) records these electrical signals from the scalp using electrodes. During an EEG test, electrodes are placed on the scalp to detect brain waves which are displayed as wavy lines. EEGs can help diagnose conditions affecting brain function and electrical activity such as epilepsy, brain tumors, and sleep disorders.