> For the complete documentation index, see [llms.txt](https://help.trikset.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.trikset.com/ev3/sensory-variables.md).

# Сенсорные переменные для контроллера LEGO EV3

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

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

| Переменная                                                                                                                                                                                                                                                                                 | Описание                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong><code>buttonBack</code></strong></p><p><strong><code>buttonDown</code></strong></p><p><strong><code>buttonEnter</code></strong></p><p><strong><code>buttonLeft</code></strong></p><p><strong><code>buttonRight</code></strong></p><p><strong><code>buttonUp</code></strong></p> | <p>Состояние кнопок на корпусе робота:</p><p>«Назад», «Вниз», «Ввод», «Влево», «Вправо», «Вверх» соответственно.</p><p></p><p>Возможные значения:</p><p>0 — кнопка не нажата.</p><p>1 — кнопка нажата.</p> |
| <p><strong><code>encoderA</code></strong></p><p><strong><code>encoderB</code></strong></p><p><strong><code>encoderC</code></strong></p><p><strong><code>encoderD</code></strong></p>                                                                                                       | Показания энкодеров на портах A, B, C, D соответственно.                                                                                                                                                   |
| <p><strong><code>sensor1</code></strong></p><p><strong><code>sensor2</code></strong></p><p><strong><code>sensor3</code></strong></p><p><strong><code>sensor4</code></strong></p>                                                                                                           | Показания датчиков на портах 1, 2, 3, 4 соответственно.                                                                                                                                                    |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/ev3/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.
