Can i use a Sharp gp2d12 39 sensor

Hi Guys

Can i use a Sharp gp2d12 39 sensor with my Arduino uno

Thanks

Yes, it looks like it - takes 0V and 5V supplies and an analog output. You'll need to do a little arithmetic on the result of analogRead() to get a distance value.

I think the only downside is it takes a fair amount of power (upto 50mA) - if you are using several of them this could be an issue.