Arduino Obstacle Avoidance and Cliff Avoidance Robot

Nice try, but still not quite right.

Highlight your code in the post, click the # above the smileys and it will put code tags around your code.