Here you can see IR sensor schematic.
I used two IR LEDs, one as detector (D1), another as emmiter(D2). The sensitivity could be adjusted with trim-resistor.
VDD - 5V
The signal to the microcontroller can be taken just before or after the LED1.
Here is the foto of the board.
