IRarray

can someone teach me a simple sketching to use IRarray in arduino robot. what i mean is i want to make my arduino robot not from falling from the table by using IRarray. can someone teach me? im still a beginner.

The built-in IRarray is behind the front caster. If you use it to try to detect a cliff the front caster will already be over the cliff when you detect the edge. If you want to look for a cliff you might want to put a downward-looking ultrasonic distance sensor on the front of the robot.

so its is really impossible to use IRarray for detect the clift?

if it is impossible...can u give me a simple or any sketching exmple for ultrasonic distance sensor that you have mentioned earlier sir?