In reading the information request above my thoughts would be as follows.
If the child is just walking around at night once they are awake you need to make a clear expectation that it is not OK to do this. You must make them live up to this expectation. I suggest if the child is just wandering to place a gate with a lock in the door way. If the child would be able to get over the gate then install another gate on top. I would also suggest a simple rewards chart. Have your child pick some small reward they would like to work for. I think doing things like going to the park with mom/dad or going to ______________ with a friend. I also suggest having he/she help set up the chart before using it. By having the child take ownership they will work harder to meet your expectations.
Hope this helps with your situation.
If this has helped please click ACCEPT to show your gratitude.