Sleepwalking affects 1 in 3 people. Tips to help stop it.

ATLANTA (FOX19/CNN) - Sleepwalking is a problem that affects one in three adults at some point during their lives, according to a recent study. And it can be a dangerous problem.

It's most common among children ages 4 to 8. Most people outgrow it. However, there is medicine available for adults, according to WebMD.

For kids, you can do what Noel Schenck did --- put up a gate at the top of your stairs and make the house as safe as possible in case your little one starts walking in the middle of the night. As for what to do if you see a child or adult sleepwalking, the director of Emory University's sleep laboratory has some advice.

"It's probably best to try to redirect a sleepwalker back to bed than to try to shake them awake and ask them what they were doing," said Dr. David Schulman.

If an adult happens to start sleepwalking, it's usually because of sleep deprivation, an illness, alcohol, or medications like sleeping pills. According to WebMD, it's best to put heavy drapes over your bedroom windows and avoid listening to the radio or watching TV in your bedroom before you try to fall asleep. If that doesn't work, see your doctor.