The process by which heat energy in the form of light (usually IR unless the substrate is hot enough to glow in the visible range) is emitted more strongly by warm surfaces and absorbed by other materials especially those of low IR reflectivity (think matte black finish). Radiant heat transfer does not require a medium. Foam insulation materials, such as spray foam insulation, are opaque to thermal radiation, like most solid materials.
once the foam is installed correctly, it is a inert plastic not much different than the foam cushions you sit on. there is not a health rick unless you have off ratio uncured foam that has not mixed properly. the foam is absolutely a health risk in its raw forms before it is mixed and cured. You should not be in the building without proper respirators and eye protection. The spray foam industry should be controlled and regulated by the same standards, testing and inspections that framing ,electrical and plumbing are. until that happens then you will have idiots with spray rigs ruining peoples homes and ruining the market for honest foam contractors that know how to price a job fairly and complete it correctly.
I used this product to seal and insulate my rim joists as I am finishing the basement. The builder used R13 batt insulation when we built the house 3 years ago. I use a dehumidifier to control moisture in the basement which is below grade. The setting I use is 55%. The dehumidifier kicks on periodically and requires emptying every few days. Since using the foam all around the house on the rim joists and sill plate, the dehumidifier has stayed at 50% for over two weeks since spraying and rarely turns on anymore. I also put the original R13 batt insulation back up after the foam cured.

Spray Foam Hot Roof

Spray foam can be used for a variety of applications, including attics, crawl spaces, walls, and more. At Dr. Energy Saver, we specialize in spray foam installation that makes your home more efficient and comfortable. If you're interested in learning more about how spray foam can help your home, call Dr. Energy Saver for a consultation and estimate.
This is in great contrast to my friend's experience. Her attic spaces were sprayed and the foam is actually pretty, and I was in her attic 6-7 days after it was sprayed and could hardly smell anything when I stuck my face up to the foam. And she did not have to clean up one speck of dust during or after the spraying. I got the name/number of the guy from her who managed her attic project, but between the time he did my house and the time he did her house, he was let go from the company who did her attic and hired by another company. He assured me everything would be the same, etc., etc., and I had no reason to believe anything had changed, but the sprayers who did my house later admitted they had never sprayed an attic before and I also found out that the foam used in my attic was from a different manufacturer. Neither my friend nor I had any idea this guy was with different company then, until the week after they filled my attic with off ratio foam, and my home with toxic vapors.  
You probably have some familiarity with spray foam insulation, and you may have even used the foam that comes in pressured spray cans at home improvement retailers. This foam is know as one-part foam, meaning that it is one continuous mixture that is simply applied to the area in need. One-part foam is frequently used for sealing small gaps and cracks.
Spray foam is a fully adhered insulation that is spray applied into wall cavities, providing a continuous air and moisture barrier. Spray foam allows efficient use of your HVAC system and helps regulate the temperature fluctuations and humidity in your home. Spray foam effectively seals the building envelope, filling in any cracks and crevices, the common source of air and moisture infiltration as well as temperature variations.

I had a hole in the drywall in our bathroom that was about 2 in x 5 in that I used Great Stuff to fix. I am impressed with the characteristics of the filler. It filled the hole completely in a few seconds of application. I will warn anyone using it though to make sure you don't fill the hole entirely flush to the wall because this stuff continues expanding after you apply it. I didn't think about that but no big deal really because you can sand it which is exactly what I did, and then applied spacial and paint and it is almost as good as new. For the price this was a heck of a deal because I only used a tiny amount and now am left with nearly a full can. I guess I will have to find somewhere else to use it now. Great product, ... full review

Spray polyurethane foam (SPF) is a spray-applied plastic that is widely used to insulate buildings and seal cracks and gaps, making the building more energy-efficient and comfortable. SPF insulation is known to resist heat transfer extremely well, and it offers a highly effective solution in reducing unwanted air infiltration through cracks, seams, and joints.
Today, each of the 50 states follows a different set of building codes making navigating these codes confusing, particularly for architects or builders that have projects in multiple states. In some cases, the building code changes significantly between the state and certain cities or counties within the state. For example, at the time of writing Arizona had adopted the 2015 IRC Building Code, however, Phoenix was on the 2012 IRC, IBC and IECC code. With the majority of states either on the 2009, 2012 or 2015 code, below are some high-level points to consider and about how spray foam insulation contributes.

How Much Spray Foam Garage