The sensor seems to be designed to trigger when an object is within 40 cm -- for use with automatic toilet flushers and things like that. The output is high (no object) or low (object detected). If you're wanting to know the distance between the sensor and the object, this is not the device to use.
Comments
You might want to use the GP2D12; then you can change the trigger point is code instead of external hardware.· This article might help: http://www.parallax.com/dl/docs/cols/nv/vol5/col/nv114.pdf
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Post Edited (Jon Williams) : 11/19/2004 8:50:38 PM GMT