Both internal and external variables have an impact on sleep. Physical discomfort, stress, psychological problems, snoring, and sleep disorders are some of the internal elements that has an impact on how well people sleep. Drugs, sleep surroundings, sleep patterns,caffeine and alcohol, and particular foods are some of the extrinsic influences.