View your LoRa data on myDevices Cayenne Dashboard.

Connecting your LoRa Node to the myDevices Cayenne Dashboard.

Cayenne is a free IOT dashboard provided by It supports many micro controller boards like Arduino, ESP8266, etc. You can easily configure your devices in the dashboard. You can choose different gauges, values, symbols, or data charts.

In this tutorial we are going to connect the LoRa PCB with a DHT22 sensor to the TheThingsnetwork and let it log on the Cayenne dashboard.

Assuming you got your Node PCB running with a DHT22 sensor, or another sensor.

To get the script working properly with the Cayenne dashboard, you must install the CayenneLPP library. Download it here:

After installing the Cayenne_LPP library you can download a sample script from our Github page:

Enter your:
Network session key, Application session key, Device address
From TheThingsNework or other LoRa network at line 43

At line 61 you can change the time between Payload updates.

At line 148 you find an example list how to configure different sensors and channels.

//lpp.addDigitalInput(CHANNEL, uint8_t value);
//lpp.addDigitalOutput(CHANNEL, uint8_t value);
//lpp.addAbalogInput(CHANNEL, float value);
//lpp.addAnalogOutput(CHANNEL, float value);
//lpp.addLuminosity(CHANNEL, uint16_t lux);
//lpp.addPresence(CHANNEL, uint8_tvalue);
//lpp.addTemperature(CHANNEL, float celcius);
//lpp.addRelativeHumidity(CHANNEL, float rh);
//lpp.addAccelerometer(CHANNEL, float x, float y, float z);
//lpp.addBarometricPressure(CHANNEL, float hpa);
//lpp.addGyrometer(CHANNEL, floatx, float y, float z);
//lpp.addGPS(CHANNEL, float latitude, float longitude, float meters);

At line 162 you can see how the sensor data is linked to te Cayenne channels. For this script we use the DHT as working example. Feel free to edit or try other sensors.

Upload the script to the LoRa board and check the serial monitor to see if your node and sensor is working properly.

Next, configure your LoRa device in TheThingsNetwork console to connect to the Cayenne dashboard.
Select integrations in your applications overview.

Click on ‘add integration’.

Select the ‘Cayenne’ icon.

Create a Process ID .

Select the Access Key you want to use.

Click on ‘Add integration’ to save the Cayenne settings.

Go to the Cayenne Dashboard from mydevices. Login or create an account.

After logging in you can add a device. Click on the LoRa icon.

Select ‘The Things Network’.

Scroll down to select ‘Cayenne LPP’.

Copy the Device EUI from your device overview in The ThingsNetwork dashboard.

Paste it in the Cayenne configuration.

Click ‘Add device’ and wait for an update from your LoRa device.

If everything goes well, you will see the updates from your node appear in the dashboard. You can now add different gauges, line charts, icons etc.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.