This IR object detector module carries a single Sharp GP2Y0D810Z0F IR distance measuring sensor. It will detect objects at 100mm (4") using an IR transmitter and receiver. A logic level output is driven low, and an LED is lit when an object is detected.
Module documentation and application info are available to get you started right away. This is open source hardware, all design files are available.