but the sharp gp2d12 for example is an infrared distance sensor which goes from 10 to 80 cm with an analog ou
I also recommend the sharp sensor which is discussed in several threads within roboternetz.
Manfred