HELP with Infrared emitter + sensor problems

njs707:
OK so I copy and pasted the code and tried it. It did not look like the numbers where affected by my hand motions. Here is my setup attached between a breadboard and arduino....

GND ____ - Yellow LED + ____ pin 13
GND ____ - IR LED + ____ 100 ohm resistor ____ pin 12
GND ____ - IR Receiver + 10k ohm resistor ____ A0

Should be that simple right?

I believe you need to provide a source of power for the IR Phototransistor to work. Try this schematic: