Let's Make Robots!

Sharp GP2Y0A21YK0F reads random values.

hi

 I am a newbie to building robots. I am trying to use the sharp GP2Y0A21YK0F IR sensor for reading distance values and I am hitting with two problems.

1. sensor reads very wide range of erratic values.