Hey guys.

My group and I are doing some work with IR sensors and sounds for our semester project. We've been using this PD for the first time ever, and we used this guys blog for help.

http://spencerdixon.wordpress.com/2010/12/15/how-to-build-a-midi-controller-with-the-arduino-firmata-and-pure-data/

This is the part we're at:
http://spencerdixon.files.wordpress.com/2010/12/screen-shot-2010-12-15-at-21-55-061.png

We got it working with the button thing, and had stable numbers, but when we connected our sensor instead of the button, our numbers were really unstable.
Is there a way to get our sensors numbers more stable? Or is this just the way it is?
The sensor we're using is Sharp GP2Y0A02YK0F.

Any help is much appreciated.

Best Regards, Litcandle.