# Sensor variables

Besides [constants](/en/studio/programming-visual/expression-syntax/const.md), in TRIK Studio reserved variables are available that store the values ​​of the readings of sensors connected to the corresponding ports.

These values ​​can be assigned to variables and used in mathematical expressions.

Variables have the form

```lua
sensor<port name>
```

For example, `sensorA1` for TRIK or `sensor1` for Lego NXT.

A complete list of sensor variables is provided in sections for specific platforms:

* [TRIK](/en/trik/programming-visual/sensory-variables.md).
* [LEGO EV3](/en/ev3/sensory-variables.md).
* [LEGO NXT](/en/nxt/sensory-variables.md).


---

# 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://help.trikset.com/en/studio/programming-visual/expression-syntax/sensory-variables.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.
