Taking a sleeping pill seems like a simple fix: pour a glass of water and swallow. If you don't address the causes behind your wide-eyed nights, though, they're likely to resume as soon as your meds are used up. So, even if you do take sleeping pills temporarily, start practicing good sleep habits.