The Wall Checker is built from the Lego Spike Prime educational kit. If the robot collides with a wall (or other object) while moving, the robot recognizes the obstacle and turns around to go around it. The sensor used is a built-in Hub’s gyroscope.
The set includes step-by-step building instruction and an example of program (in Spike environment).