Trouble with obstacle avoiding robot

Have you tried to test the sensor out just by itself? To possibly see if it is something with the sensor, or with your code?

Hope it helps :slight_smile: