Sharp IR sensor question


I have ordered one of this proximity sensor. In my application, I do not really need a continuous reading of the distance. Once every 10seconds is really enough. I was thinking using the same kind of code that the one of the tutorial to blink a LED without a delay, but I was wondering what is the state of the sensor while I am not doing a readAnalog call? Is the sensor off, or does it continue its reading?

I also have a wiring question. Is the good way to use this sensor is to put a 4.7uF capacitor between IOLine and Ground?


The sensor operates continuously, whether you are reading the voltage is putting out, or not. Reading the value every 10 seconds is like reading the value of a potentiometer every 10 seconds. Changes between readings are lost.

Ok, thanks.