Hi,
I am new with arduino and I would like to set up my controller to use a Sharp GP2D12 IR sensor as a prox sensor. I have used the code for potentiometers that is available on the adruino website, however it blinks the led based on how close you are to the sensor. I would like to program it so that I can set a distance and the LED will turn on if I am within that distance. Can anyone help me with this?