> 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/en/trik/programming-code/object-brick/class-accelerometer.md).

# Class «accelerometer»

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

Represents the [accelerometer](/en/trik/programming-code/object-brick.md#accelerometer) of the TRIK controller.

| Method                                                                     | Description                                                                                                            |
| -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [read](/en/trik/programming-code/object-brick/class-accelerometer.md#read) | Returns the current sensor reading as an array of three elements corresponding to the sensor readings along each axis. |

| Signal                                                                           | Description                                           |
| -------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [newData](/en/trik/programming-code/object-brick/class-accelerometer.md#newdata) | The signal sent by the sensor when new data is ready. |

## read

Returns the current sensor reading as an array of three elements corresponding to the sensor readings along each axis.

#### Syntax

{% tabs %}
{% tab title="JavaScript" %}

```javascript
brick.accelerometer().read();
```

{% endtab %}

{% tab title="Python" %}

```
brick.accelerometer().read();
```

{% endtab %}
{% endtabs %}

## newData

The signal sent by the sensor when new data is ready.
