# Sensor variables

Besides [constants](https://help.trikset.com/en/studio/programming-visual/expression-syntax/const), 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](https://help.trikset.com/en/trik/programming-visual/sensory-variables).
* [LEGO EV3](https://help.trikset.com/en/ev3/sensory-variables).
* [LEGO NXT](https://help.trikset.com/en/nxt/sensory-variables).
