CJMCU-008 3 axis magnetometer

An experiment. Place the chip directly under a disc coupled to the wind vane. Place a small magnet on the north side of the disc which will rotate with wind direction. Its magnetic field should override any other magnetic field. Haven't tried it but worth a shot.