Attach the hoses to the tanks that contain the chemicals for the spray foam. When the chemicals are combined, they will turn into the foam.
Point the nozzle toward one corner of the roof where you want to begin spraying the foam.
Pull the trigger on the sprayer and move back and forth in a straight line, covering an area that measures about 3 to 4 feet wide.
Continue applying the foam to the roof until it is completed, covering it in 3 to 4 foot sections.
Examine the foam after it has hardened, which only takes a few minutes. If there are any areas where the foam doesn't extend to at least the edge of the roof rafter, add more foam to provide a uniform coating.