Windmeasuring with Automation pHAT on RPI3B+

Hello

I would like to measure winddirection and speed using a Windmeasuring with Automation pHAT on a RPI3B+. Similar to this Arduino solution here: http://cactus.io/hookups/weather/anemometer/davis/hookup-arduino-to-davis-anemometer

Reading the analog value (0-5V) of the Winddirection is achieved ;)

How would you recommend to read the Windspeed? How to get the counts of the reed switch?

Thanks in advance!