If I don't start falling asleep almost immediately, I start tapping my fingers on my leg at a high rate and gradually slow down. It's interesting to note what happens.
When tapping, the mind stops thinking and concentrates on the tapping, but usually after a short period, the fingers stop tapping unconsciously and the thinking process begins. Once you became aware of this, you start tapping again and the thinking stops. This process happens over and over again until you finally fall asleep. Apparently, the mind can't concentrate on tapping and thinking at the same time and habit prefers thinking, so you have to consciously repeat the tapping process until sleep occurs.