Another thing that helps me sleep is giving myself a choice between working on something or sleeping. I'm a very lazy person, so the thread of work makes me sleepy.