# Сенсорные переменные

Кроме [констант](/studio/programming-visual/expression-syntax/const.md), в TRIK Studio доступны зарезервированные переменные, которые хранят значения показаний сенсоров, подключенных к соответствующим портам.

Эти значения можно присваивать переменным и использовать в математических выражениях.

Переменные имеют вид

```lua
sensor<имя порта сенсора>
```

Например, `sensorA1` для ТРИК или `sensor1` для Lego NXT.

Полный список сенсорных переменных приводится в разделах к конкретным платформам:

* [ТРИК](/trik/programming-visual/sensory-variables.md).
* [LEGO EV3](/ev3/sensory-variables.md).
* [LEGO NXT](/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/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.
