Despite challenges, a good night’s rest is attainable for those with diabetes, according to U.S. News and World Report.

There could be many reasons why you’re not getting a good night’s sleep if you have diabetes. You may experience low blood sugar that causes headaches. Or you may have high blood sugar that leaves you thirsty, and then you have to wake up and use the bathroom throughout the night, says Dr. Daniel J. Donovan, director of clinical research for the Diabetes, Obesity and Metabolism Institute at the Icahn School of Medicine at Mount Sinai in New York City.

You also could have one of the many sleep problems that are more common in people with diabetes, including obstructive sleep apnea and restless legs syndrome.