I am very much a newby to these.

Below is the code that I write originally my input was pin 7, but for some reason I could not get it to triger with a switch. The intent is to give the input pin a high by using a momentary switch, which will cause pin 6 to go hi for 2 seconds, then pin 5 for 2 seconds, the timeout for 3 seconds and then wait for another trigger event. When my hand gets near the switch which triggers pin 3, it triggers. If I get near it it tends to do the same. Any quips of wisdom would be appriciated.

Butch

SEN VAR GPIO.4
POW VAR GPIO.1
SHT VAR GPIO.2
LOW SEN
LOW POW
LOW SHT
INPUT SEN
OUTPUT POW
OUTPUT SHT
LOOP:
IF SEN=1 THEN
HIGH POW
PAUSE 2000
LOW POW
HIGH SHT
PAUSE 2000
LOW SHT
PAUSE 3000
ENDIF
GOTO LOOP