Sharp proximity sensor

Hello friends. Can somebody help me? i have a Infrared Proximity Sensor Long Range - Sharp GP2Y0A02YK0F I need a code. A really simple one. just when you are 30 cms close a led turns on. if not.. another led turns on. Can some one help me please? Thanks.

Have a look at these...

http://www.google.com/search?q=sharp+proximity+sensor+site%3aarduino.cc

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1238235706 http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1229455052

...then give it a try. If you're still stuck, post the code you have with a description of what specifically is and is not working. I suspect someone will be able to help.

  • Brian