Hello, I am doing the exact same thing using a reed switch to blink a LED. I am using an inspeed vortex wind sensor
I have the same script as above, with the reed switch in the wind sensor acting as my switch.
However, the light is just always on! it wont blink off when i spin the sensor.
any advice?