Incredibly simple and effective as long as our machine or process is not time sensitive – perfect for a weather station temperature sensor, although wind direction is slightly more complicated.
Weather stations are a popular project for experimenting with various environmental sensors, and for wind speed and direction the choice is usually a simple cup anemometer and wind vane.
The sensor has a dielectric polymer layer that ... while a wind vane measures wind direction. The vane always points in the direction that the wind is coming from and reports an analog voltage ...