Any tips to crate train our 5yo dog? Want him to sleep in the crate at night and when we are gon...

Any tips to crate train our 5yo dog? Want him to sleep in the crate at night and when we are gone. He has too much freedom right now which I think is part of our behavior problem