Locate and mark the position of each stud with the stud finder.
Drill a hole with the hole saw 3 feet up from the floor in between the stud cavities. Drill a hole 6 feet up from the floor, and drill another holr at the top of the wall. Each stud cavity should therefore have three holes, one at 3 feet high, one at 6 feet high and one at the top of the wall cavity.
Tape the nozzle of the liquid spray foam gun to one end of the plastic tubing with electrical tape. Connect the liquid spray foam gun to the foam dispenser.
Insert the other end of the plastic tubing into the bottom wall cavity 3 feet up from the floor. Feed the tube into the hole until you feel the tube hit the bottom of the wall cavity.
Press the gun trigger and spray the foam into the cavity. Swish the tube back and forth as you spray, to provide even coverage inside the cavity. Do not overfill the cavity. Stop spraying when you see the foam rising up to the level of the hole.
Insert the end of the plastic tubing into the second wall cavity 6 feet up from the floor. Feed the tube into the hole until you feel the tube hit the top of the spray foam portion already inside the wall cavity.
Press the gun trigger and spray the foam into the cavity. Swish the tube back and forth as you spray, to provide even coverage inside the cavity. Stop spraying when you see the foam rising up to the level of the hole.
Insert the plastic tube into the hole at the top of the ceiling. Continue spraying the foam into the cavity. The foam may ooze out of the holes as you spray. This is normal. Allow the foam to dry and slice off the excess foam even with the wall surface.
Continue filling the rest of the wall cavities in the room. Allow the foam to dry and slice off the excess foam from the holes so that the foam is even with the wall surface.
Patch the holes with joint compound. Allow it to dry. Prime and paint the walls.