A number of factors are responsible for insomnia. Some of the basic reasons include depression,…