Can you change it so it uses the actual value instead of 0 and 1
Search the script for
if (1==0)
and change to
if (1 == 1)
When you run it you will get raw values which may or may not help.
Also try the code with different remotes - if you are still getting garbage then
- What pin is your sensor connected to?
- Have you got another sensor to try?
Chris