Images from my GP2D12 sensor test. I connected the sensor to an ATmega168 running a 8MHz clock. This makes a measurement then scales it down to 8 bit and
sends it to matlab. I did a plot of 10000 samples. The image above was the first day, as you can see there is a lot of noise. So i did the same experiment
the next day and it got a lot better. The object is approx 15 cm from the sensor.