Terraria item ID 4075. Terraria 1.4.5.7.
The Weather Vane is a decoration piece that will periodically sway in the wind if placed in the surface or space layer, and without a background wall behind it. If the wind speed hits 5 mph or more, it will start swaying in the direction of the wind.
Crafted at Iron Anvil / Lead Anvil. Ingredients:
Description from the Terraria Wiki.