Spray foam is a good solution to use in your crawl space to help maintain your home's temperature as well as prevent moisture intrusion. It also helps prevent possible wood rot and rodent infestations. In the after photo, you can see the spray foam in the back between the rim joists.