Hi There thanks
I have done just that on the input I have
100k to ground permanently on GP0
the switch is wired in this order +5V 10K switch then GP0
still no luck
It just does nt want to check the input condition I have a relay conected via a transistor to the output
This is quite a puzzling problem