These are also known as "hair muscles". These are tiny muslces that are attached to the hair shaft. These muscles cause the hair to stand up or be erect. When the Arrector Pili muscles contract due to stress, fear or other nervous conditions, the hair becomes stiff and will actually "stand on end".
Daily Hair Tip
A humectant hair product attracts moisture to the hair while an anti-humectant repels moisture. Use a humectant to combat static electricity and an anti-humectant to deal with humidity.