Sharp GP2Y0D810Z0F how to use?

Ah ok, thanks! I connected the sensor with an analog pin (A0) but I was able to read the "edge" out with "digitalRead", how is that possible? :smiley:

Sorry for my bad english :frowning:

Thanks!