This is a proximity sensor that allows the robot to never fall of the table, so at the edge of the table the robot will either reverse, move forward, turn left or right, all depending on what is needed to avoid the edge. The sensor was made with a LDR and a ultra-bright led.