# Touch Sensor

```cards
sensors.touch1.onEvent(ButtonEvent.Pressed, function () {
    brick.showImage(images.expressionsBigSmile)
})
sensors.touch1.isPressed();
sensors.touch1.wasPressed();
```

## See Also

[on Event](/reference/sensors/touch-sensor/on-event),
[is pressed](reference/sensors/touch-sensor/is-pressed),
[was pressed](reference/sensors/touch-sensor/was-pressed)