Refactored testcode for windsensor, that I got working after some tinkering