IR emitter and receiver problem

You have the emitter and receiver mixed up. The receiver has the dark/tinted lens and that's where your analog reading should be coming from. Right now you're reading from the emitter, but since that output never varies it acts like a voltage divider and you only get a single value.