Bluebirds like to live in natural tree cavities where they can build their nests. If you want to attract bluebirds to your yard, provide a house that is about 10 inches tall with an opening of 4-5 inches wide and 6-7 inches deep.
Image Credit: http://wild-bird-watching.com