What does sensor mean?

A device that measures something about the world and turns it into a value the program can read: distance, position, heading, an image.

Also written as: sensors

In a lesson

So far the robot has driven blind. Now it looks ahead. On its front is a time-of-flight sensor: it fires invisible light and times the reflection. distance() tells you how far it is to the nearest thing straight ahead.

Learn it

Used in

and 106 more lessons.

Do the lesson in the simulator

All glossary terms