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...

...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