We use MicroPython to program a box with a distance sensor. When an object is near, the motor changes direction (simulating a robot backing up). We can change the threshold distance by using the potentiometer. The display shows two vertical lines, one for the distance and one for the threshold. This is a great "kit" to teach kids robots since it involves, sensors, logic and motors.