Medium- and high-density polyurethane foams are sometimes used in basements and crawl spaces that have poured concrete, concrete block, brick or rubble walls and are not intended to be living space. In these cases, spray foam is installed directly on the foundation wall and then sprayed with a non-flammable covering to meet local code requirements.