IR emitter and receiver problem

I don't have time right now to look at your code. Do this. Comment out everything in your code except the 6 analog reads and the serial prints to read the. Measure the voltage with a meter at the analog inputs. Make sure everything has a common ground.
Post your results.