# Touch Sensor

The REV Robotics Touch Sensor ([REV-31-1425](https://www.revrobotics.com/rev-31-1425/)) is a digital sensor that can be used as a button input or as a basic mechanical limit switch. The touch sensor is similar to a keyboard button, when the button is pressed the touch sensor notifies the Robot Controller and an action in the code is triggered. Sometimes this action may stop the motors or reset the encoder angle, depending on the use case.&#x20;

Like all digital sensors, the Touch Sensor acts on a binary. When the button is not pressed, the LED light remains unlit and the value read by the Expansion Hub is 3.3V (high) and when the button is pressed the LED will light and the Expansion Hub will read 0V (Low)

<figure><img src="/files/LIlfq3ubfk6ryDwQS3JL" alt=""><figcaption></figcaption></figure>

### Kit Contents&#x20;

|                                  Part Number                                 | Description                      | Qty |
| :--------------------------------------------------------------------------: | -------------------------------- | :-: |
|            [REV-31-1425](https://www.revrobotics.com/rev-31-1425/)           | REV Touch Sensor                 |  1  |
| [REV-31-1407](https://www.revrobotics.com/jst-ph-4-pin-sensor-cable-4-pack/) | JST PH 4-pin Sensor Cable - 30cm |  1  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.revrobotics.com/rev-crossover-products/sensors/touch-sensor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
