I made a small change to the code in reply# 13 that may help (try it). How is your button wired? Do you have a pulldown resistor on the switch input pin (6)?
I made a small change to the code in reply# 13 that may help (try it). How is your button wired? Do you have a pulldown resistor on the switch input pin (6)?