Working at night and sleeping during the day is another. Other causes include drug, alcohol, or cigarette use, lack of physical activity, obesity, and the use of certain medications. But nodding off when you want or need to be awake may also be caused by an underlying condition