Playground.arduino.cc will be read-only starting December 31st, 2018. For more info pleae look at this Forum Post

read_gp2d12_range

The code available in this page for Sharp GP2D12 infrared sensor was too innacurate to be useful so I decided to remove it.

Sketch Library