A few things:

Cut out non-essential sodium, yeah I know ......sometimes I do have some chips and salsa though when I have a craving. I definitely feel it when I have too much salt.

Stop eating 3 or so hours before going to bed. I have stopped eating anything after about 7:30-ish. When I eat late, it makes me feel more sluggish.

By journaling what I eat, I have to write it down. If really don't want to write down that I had some candy, I make myself not eat it.

This seems to work for me.