Teensy 3.6 + US Digital MA3

Wind vane direction

Photo

5 volts

Using the MA3 to detect the wind direction. Notice I'm running the MA3 at 3.3v and not at 5v, as I should. The max reading can be used to equal 360 degrees.

Sketch