IR emitter and receiver problem

I don't that sensor is going to work with collector pulled up to GND . Try moving the resistor to +5V rail instead.

What does this say ?
What do you see when you look at the photo I posted ?
I don't know how you could not understand this. Your pullup resistor for the transistor is NOT connected to +5V !
It is connected to GND !
LOOK AT THE PHOTO I POSTED and read my comment above again