In this post I will show you How to use IR LED and Photodiode pair to detect obstacles with the Arduino source code.