## 3. Example 1 with light level

### Goal

As a first example, we want to send a light level via LoRaWAN. The Micro:Bit can measure the light intensity via the LEDs on the front. We will transmit the value every 30 Seconds.

### Hardware

- Connect the Y USB Cable to the IoT Cube

  - the plug marked red on the back of the housing (only power)

  - the other one to the micro:bit on the top of the housing (power + data)

- Connect the USB-A Connector with your computer

### Software for the IoT Cube

Try to recreate this example. You will need nodes from the following categories. The colors help you to choose the right category.

### 2.4 Integration on things board

You now create a dashboard to display the values. Proceed as follows:

- Click here to open our cloud platform: Clavis Cloud (ThingsBoard)

- Login with the Email iot@KC.ch. You will get the password from Fabian Reifler.

- Click on Dashboards → Groups → Dashboards-Students-IoT-Cube

- Click on Add Dashboard
- Give a Title like "Example 1 Your Name"
- Click on Add new widget
- Select widget bundle Charts
- Select Time series chart
- Settings like that:
- Click Apply
- Don't forget to click Save

So, that was the short version. But why does the data arrive here so easily? Take a look at the next chapter.

Fabian Reifler | Copyright © 2024