You could go with ten IR LEDS and ten IR phototransistors and use this simple circuit.
The circuit is good, but I would use a variable resistor for R2, so you can modify the detection-distance.
I've used the Sharp GP2D12 a while back in a small project I did, and I was very content with it. The only draw-back is that it outputs an analog voltage, so you would need to use 10 ADC's for 10 sensors and most (low budget) microcontrollers I've worked with only have 8 (or less).
Moderator
Featured Poster
Reputation Points: 4142
Solved Threads: 394
Industrious Poster
Offline 4,132 posts
since Oct 2006