Make a Lego WeDo car with a motor. Put the distance sensor on the car. The onscreen car will mimic the movements of the Lego car. Move your hand farther from the distance sensor to increase the distance sensor value. Move your hand closer to the distance sensor to decrease the distance sensor value. When the distance sensor value is between 10 and 55, the car moves backward. When the distance sensor value is between 55 and 100, the car moves forward. When the distance sensor value is less than 10, the car stops moving.
Made by Vincent and Anubhav