I face trouble while doing this

I was following the website to try to do a project

but after i complete the circuit, I fail to make the circuit sense the object, the led on pin13 just keep turning on and the serial monitor shows the sensor digit as 0, how should i do to solve it?
or if i replace the ir photodiode to tsop1738, how should i connect and will it work?

For starters please read the sticky post at the top of the forum on how to use the forum, pay special attention on how to post your code

For someone to help you they will need to see the ACTUAL code, you might have made a simple typo - and no referring someone to the project page ans saying you entered the code per that will not really work - - also a wiring diagram (had sketch will do fine) - and sometimes a picture of your project helps

Until you post the info all someone can do is guess at what might be wrong

saildude:
For starters please read the sticky post at the top of the forum on how to use the forum, pay special attention on how to post your code

please read :
HOW TO USE THIS FORUM
read #6 about subject lines.
and what saildude said about #7
to edit a post, go to the bottom of the post, > more > modify