# Processing

Now your Device is linked to the Flow!

With a Flow you configure the way your IoT data should flow through KPN Things, from device to destination. Learn more about [flows](https://docs.kpnthings.com/kpn-things/the-portal-explained/things-manager/broken-reference).

## 1. Your first Flow

We have already created a first empty flow for you named *My first flow.* You can create new flows using the *Add flow* button on the top right.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FgE1qcT2SbVgCbJ50rMJx%2Fimage.png?alt=media&#x26;token=2682714c-03c3-4ff0-ac6b-ae6e2571ee96" alt=""><figcaption></figcaption></figure>

## 2. Link Device to Flow

Click on **Add Devices** in the Flow overview page.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FMrZblnEILgOnN1Jz7WjU%2Fadd-device-to-flow.png?alt=media&#x26;token=22e7d88d-b249-4118-82cc-a9caa33ca2d3" alt=""><figcaption></figcaption></figure>

Now you see all Devices you can add to this Flow. Click on your Device to link it to the Flow.&#x20;

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FqFa49X1mgSpBaK4oK0IJ%2Flink-device-to-flow.png?alt=media&#x26;token=a374e214-63bd-4b07-ac0e-6ae528c45830" alt=""><figcaption></figcaption></figure>

Now your Device is linked to the Flow!

## 3. Activate a Decoder

Open your Project, open your Flow, and then click **Data Processing**.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FKybbXeAQo1tWqsfNUCed%2Fset-data-processing-for-flow.png?alt=media&#x26;token=6ba28cb6-a12c-4561-828f-3b17f985a54b" alt=""><figcaption></figcaption></figure>

Click on the Device type for which you want to activate a decoder (#1 in the screenshot below). At this moment you probably have only one type of device linked to the Flow, so open that one. All available decoders are now shown (#2 in the screenshot below).

Here you can toggle on and off what (decoded) data you want to receive in your application (like indicated with #3 in the screenshot below). If you want to know more about the decoder, click on the link in the description.

<figure><img src="https://1453626848-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl6RrePMSAjRvOgcHjMBZ%2Fuploads%2FCpq5XoZPBpmHRnF09YhW%2Factivate-decoder-for-flow.png?alt=media&#x26;token=cb182437-5d3b-4a1a-a71d-fbe1c7cb3098" alt=""><figcaption></figcaption></figure>

Note that the "Add new Decoder" button and "Edit" button are only visibleif this is your own device type. Own Device Types and Decoders can be created using the [Things Creator app](https://docs.kpnthings.com/kpn-things/the-portal-explained/things-creator).
