Press the green flag. Using its red nose as a sensor, the beetle will attempt to go north, avoiding black obstacles, and returning to the same column (x coordinate) that it started on, before continuing north. This is a simple demo of obstacle avoidance.
This is an extension of a simpler object avoidance where the main goal is to continue north, but not to return to the same column (x coordinate). See https://scratch.mit.edu/projects/678075333/