Ideally the thermostat should be mounted to a rafter along the wiring path and away from the draft of the fan.
Install attic fan thermostat switch.
Place it so it s facing in the direction of the air that s being drawn out of the attic by the fan.
Screw this box to the plywood so it s in the direct path of the airflow step 11.
The fan s thermostat is already mounted in a box that s attached to the fan by a flexible conduit.
Staple the cable within 8 inches of both the attic light box and the thermostat box.
Run nm cable from the attic fan thermostat to the attic light.
Use the hammer and staples to secure the cable to the joists at 12 inch intervals.
Mount the thermostat in the attic.
Run a 12 3 w ground from switch box to fan thermostat box.
Remove the cover of the thermostat to expose the black and white wires as well as the green ground screw.
Leave enough cable at each end to work with.