There are some anemometers that use a rotating magnet to induce a low-level AC current in a coil. The output of the coil can be applied to the + and - terminals of one of the LM339 comparators. The open collector output then produces square waves suitable for counting.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
http://www.espruino.com/LM393
There are some anemometers that use a rotating magnet to induce a low-level AC current in a coil. The output of the coil can be applied to the + and - terminals of one of the LM339 comparators. The open collector output then produces square waves suitable for counting.