What worked for us was to bring the crate into our bedroom, where Sophie could see me (in the dark-LOL). I also could hear her, when she became restless, so then I knew to get up and take her outside. After a month, we moved the crate into the kitchen. We still crate her at night. She always gets a couple of small kibble at night when she goes to bed. The DH and I laugh at her, because as soon as she comes back into the house after her last walk of the night, she runs to the crate.... all for two tiny kibble.
Sophie loves her crate. She is gated in the kitchen when we leave the house, and we usually find Sophie in her crate, when we return home.