IMADK, Are you sure the resistor is connected? It sounds like the input is floating. Check it with a meter when the switch is open....

Dave Purola,
N8NTA