Using IR sensor with Arduino Mega 2560

They show more than one program listing. Which one are you using? Are your components 100% like the web site?