Control a small DC fan from a temperature threshold with a transistor or MOSFET, flyback protection, and hysteresis; this is not an AC-unit controller.
Identify whether a breakout contains HMC5883L or the common QMC5883L alternative, then calibrate hard-iron and soft-iron distortion before computing heading.