Code for the windsensor module