What if instead of

IF NOT GPIO.1 THEN

You use

IF GPIO.1=0 THEN

? just curious to see if there's any difference



picster