Chagrin:
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.
Thanks alot for your reply. I changed the jumper wire to the GND of the dark lens and changed resistors too, but now it just gives me values only inbetween 5 and 15, sometimes goes upto 50. It doesnt show any drastic change when I hold a black object above it and when i hold a white paper above it.