← Robotics

Chapter 2: Sensors: Robot Senses

Sensors are how a robot knows what is around it. This chapter covers light, touch, distance, and sound sensors.

You're browsing as a guest — join with your school invite link to save progress and earn points.

What Is a Sensor?

A sensor is a part that measures something in the world. It might measure light, distance, touch, or sound. The sensor sends that measurement to the robot brain. The brain uses it to decide what to do next. Sensors turn the real world into numbers a program can use.

Seeing With Sensors

A distance sensor can tell how far away a wall is. A light sensor can tell if a room is bright or dark. A touch sensor knows when the robot bumps into something. Each sensor has a range, and readings can wobble a little. Good programs check sensors more than once before they act.

Using Sensor Readings

A program might say: if the distance is small, stop and turn. If the light is bright, move forward, and if it is dark, slow down. Small rules like these add up to clever behaviour. Test each rule on its own before you combine them. Clear rules make a robot you can trust.

Check yourself — puzzle games

Pass the game to finish the chapter. No fail — just another go.

Put the Sensor Steps in Order

Put these steps in the right order for using a sensor.

What Does a Distance Sensor Measure?

What does a distance sensor measure?

Our partners & sponsors

Become a sponsor Questions & Get Involved