Read more about the process on making The depressed shoe shelf.

Read more about the process on making The depressed shoe shelf.
Trying out the small Sharp GP2Y0D810Z0F IR sensor. It only detects when an object is 2 cm to 10 cm away. Great for detecting close up objects. The sensor is very sensitive so I added a resistor of 1 mega ohm to lighten up the power supply. There are 3 pins on the circuit board of the sensor: ground, power supply (2.7 V to 6.2 V) and analog output. More details on the sensor and circuit board on Pololu’s site who are the manufacturers of the circuit board. There is also another version of this sensor Sharp GP2Y0D805Z0F, detecting objects even closer with a range of 0.5 cm to 5 cm.

Serial monitor output