Nice looking build. The author is basically using an magentic encoder to determine the position of the vane. And Arduino to translate and communicate the data over bluetooth. Sounds like its pretty accurate too.
http://www.instructables.com/id/Accurate-Wireless-Weather-Vane/?ALLSTEPS