Conditionals with Sensors: Robotics lesson for kids
In “Conditionals with Sensors”, children learn about if distance < 10 cm: stop, else: drive slowly; Invalid reading.
if distance < 10 cm: stop, else: drive slowly: Checks the sensor reading in centimeters first — the robot only stops when that exact condition is true, and drives slowly otherwise.
Invalid reading: If the sensor gets no echo back at all, that is not "far away" — the safest rule is to stop and signal for help, since the distance is unknown.
This lesson is part of Engineer in Robotics at Pearls Valley Academy — Sensing & deciding.
Each lesson starts with a short narrated, animated explanation, then hands-on practice. A wrong answer gets a gentle hint, never a penalty, and children earn stars and pearls as they go.