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.