# How to integrate an ERS Elsys device with Loriot on akenza

![ERS device from Elsys](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MMKXTFIN5ZlLOjBlfC4%2F-MVrPTD45R9quCSsdY2K%2F-MVrRh2SuM4cfa0n1aTr%2Fimage.png?alt=media\&token=782d31cd-d3fb-4f82-880d-bb2ab019185f)

{% hint style="success" %}
**Applications**:

* Indoor environment measuring
* Smart buildings
* Workplace management
* Room occupancy

**Product features**:&#x20;

* LoRaWAN Certified CM
* Temperature sensor
* Humidity sensor
* Light sensor
* Motion detection sensor (PIR)
* NFC for configuration
* Configuration over the air
* Discrete and minimalistic design

You will find more information about the ERS Elsys device [here](https://www.elsys.se/en/ers/).
{% endhint %}

In this tutorial you will learn, how to add an ERS device from Elsys to the connectivity provider Loriot on akenza. To create a new device, you first need an [integrations](https://docs.akenza.io/akenza.io/get-started/integrations "mention") of Loriot and a [**Data Flow**](https://docs.akenza.io/akenza.io/get-started/your-data-flow).&#x20;

You can either integrate your existing Loriot account to akenza or making use of the [**Connectivity-as-a-Service**](https://docs.akenza.io/get-started/your-integration) that akenza offers.

### Add your Loriot account

To add your Loriot Account as an Integration provider, select Loriot and complete your integration by inserting the authentication details of your Loriot account. If all details are provided, the initial synchronization will start. This can take several minutes, depending on the size of your IoT deployment.

![Integrations](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FZQRb30ajnlX5AN45Y5HK%2Fimage.png?alt=media\&token=c1811daf-2406-4a3f-85bd-c2590c558e87)

If the synchronization was successful, the Integration will be displayed on the Integration overview.

Proceed now with the creation of a [**Data Flow**](https://docs.akenza.io/akenza.io/get-started/your-data-flow).&#x20;

### Create a Data Flow

#### Device Connector

To create a **Data Flow**,  go to Data Flow and select *Create Data Flow*.&#x20;

Choose *LoRa* as your Device Connector. If you have integrated your Loriot account, you will see it listed here. If you do not have your own account, you simply can make use of the [**Connectivity-as-a-Service**](https://docs.akenza.io/get-started/your-integration)**.** In this example, we choose the CaaS offer of Loriot.

![CaaS Loriot as device connector](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2Fzwk6vOCECQVVRpvxFm7A%2Fimage.png?alt=media\&token=d7e63328-12bc-4bbb-9344-74489a144efe)

#### **Device Type**

Use the search field to search for the **ERS** and select the Device Type accordingly. Proceed further to Output connectors.

![Device type](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FRof9yAoEvwFV43AXcmtZ%2Fimage.png?alt=media\&token=b4961b37-869c-44d1-a66d-f58fb5689f45)

#### **Output Connector**

Choose one or multiple Output connectors for your Data Flow. **Output Connectors** define what is done with the results of the device types.&#x20;

In this tutorial, we proceed with choosing Akenza DB. With the connection to the **Akenza DB** we ensure, that all data passing through this data flow are saved in the Akenza Database and thereby becomes accessible to you. Save your **Data Flow** and give a name.

![AkenzaDB as output connector](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FDYxVpcoU0xVia8B4Rlzh%2Fimage.png?alt=media\&token=27dcf265-2254-463a-9910-8ff21c6f8ec0)

### Read and configure the ERS device

{% hint style="info" %}
If no device configuration is required and the keys are known, you don't need to follow these three steps.&#x20;
{% endhint %}

Otherwise please proceed with:

1. Download the app in the[ google playstore](https://play.google.com/store/apps/details?id=se.elsys.nfc.sensorsettings\&gl=SE)
2. Start the app and connect with NFC to the sensor. You will need to hold your phone to the sensor.
3. Now copy the keys. If you would like to you could change the configurations of the device now.

Find out more about the application settings from Elsys [here](https://www.elsys.se/en/android-help/).&#x20;

### Create the ERS device of Elsys

To create a new device, select *Create Device* within the menu of **Assets Inventory**. Add a device name and optionally a description, tags or custom fields.&#x20;

![Create new device](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2Fpw44kgJZfMAmlFZwNAAb%2Fscreely-1640816236580%20tags%20device%20create.png?alt=media\&token=ff35deb6-087c-419e-a091-9373a5f00406)

Fill in now all **Connectivity Parameters** about your ERS Elsys LoRa device. Your device will get created now.

![Connectivity parameters](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FswMgHq3xWYnEPuuhFoeP%2Fscreely-1640814168489%20device%20create%20last%20step.png?alt=media\&token=d817ef32-d9bc-4cc8-9969-3bf549887f0d)

Your created **ERS Elsys** LoRa device will now be displayed in the **Asset Inventory Overview.**

To check incoming data of your device, select your device from the list and see the status on the **Data Overview.**

![Device detail page](https://2165942204-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MMKXTFIN5ZlLOjBlfC4%2Fuploads%2FbJw0YHlSWssHODPfQ3Mh%2Fscreely-1640814344289%20ddp%20decentlab.png?alt=media\&token=1da45969-dd64-4542-81ee-6df12aad27ce)

**Congratulations**, you have successfully integrated the ERS Elsys device with Loriot on akenza.
