![]() |
The Touch Sensor detects whether the button on the face of the sensor is pressed in. You can use a Touch Sensor to detect, for example, when your robot drives into something. You could also use a finger press on a Touch Sensor to trigger an action. |







| Block | Mode | Use |
|---|---|---|
| Wait | Touch Sensor – Compare | Wait for the Touch Sensor to be Pressed, Released, or Bumped. |
| Wait | Touch Sensor - Change | Wait for the Touch Sensor state to change. |
| Loop | Touch Sensor | Repeat a sequence of blocks until the Touch Sensor is Pressed, Released, or Bumped. |
| Switch | Touch Sensor | Choose between two sequences of blocks depending on whether the Touch Sensor is Pressed or not, Released or not, or Bumped or not. |
| Touch Sensor | Measure | Get the current Touch Sensor state (Pressed or not) on a Logic data wire. |
| Touch Sensor | Compare | Test the Touch Sensor for Pressed, Released, or Bumped, and get the result on a Logic data wire. |
| Data Logging | See Data Logging. |