Here's a robot that my group made. It can sense surrounding walls, and when it does, the robot turns to avoid them. We put the sensor down low so it can
see wires as well.
Here's the code that made it move and avoid other objects.
Today, I made my own code for the robot. It does the same thing, but this code enables the touch sensor, and makes the turning random when it backs up
Here's an if statement in my program. It basically says that if the touch sensor is pressed, it should stop the robot.