the light and color sensors

The Light Sensor (shown in Figure 5-19) measures the brightness of light shining into the front of the sensor. This sensor is useful when you want your robot to react to different light levels in a room or to seek out a light source in a maze or obstacle course. The Light Sensor can distinguish between shades of gray when it’s pointed at an object or the floor, which makes it useful for identifying objects or following a line.

The Light Sensor is included in the original NXT retail kit and the education set. The NXT 2.0 retail kit includes a Color Sensor (shown in Figure 5-20) instead of a Light Sensor. The Color Sensor has all the functionality of the Light Sensor, with the added ability to more accurately (and easily) ...

Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.