the touch sensor
The Touch Sensor (shown in Figure 5-2) has a small button on the front. NXT-G blocks can use input from this sensor to tell whether the button is pressed, released, or bumped (bumped means the button was pressed and then quickly released).
Programmers often use the Touch Sensor to detect when the robot has run into something, but you can also use it to control your program. For example, you can have the robot wait until you press the Touch Sensor before it starts moving.
![The Touch Sensor](/api/v2/epubs/9781593272180/files/httpatomoreillycomsourcenostarchimages708318.png.jpg)
Figure 5-2. The Touch Sensor
configuration panel
You can configure the Touch Sensor as part of the Wait, Loop, or Switch block. The part of the Configuration Panel ...
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.