The Dangers of Sleepwalking

Somnambulist or not, sleepwalking is a dangerous reality for most people.  Too much is done without an awareness of what we are doing. How do we differentiate between culture, habit, and awareness?  How does one become more mindful without that mindfulness itself shutting off awareness?  What would spiritual awareness be as contrasted to the usual religious rituals?