Ok, I cleaned up the program and pulled the input. This DID not work!, so I started to play around with different resistors and finally I think it works now. The pull down resistor was very big 197k and I did not put a pot on the IR detect. I will learn more about what happened suffice to say an off balance input pin is very suseptable to electric noise. Next time I will post a full schematic and program.