Connect a RAK7204 to Helium and Forward Its Data to Ubidots
Tags: tutorial, hardware, technology, iot
Published: 2020-10-07 05:38:21

Environmental sensors are one of the most common in the different Internet of Things (IoT) verticals. Their primary purpose is to analyze trends and patterns of air pollutants in the atmosphere - the gas layer surrounding a light blue body, like the Earth.

The environmental monitoring depends entirely on the scenario where you intend to apply it. However, among the most relevant environmental monitoring aims is to ensure the fulfillment of environmental regulations within companies in both offices and factories, perform efficiency assessment of machinery, and find human and wildlife risks, among others.

However, to be capable of analyzing trends and patterns, we must have devices capable of transmitting data to a service that enables us not only to manage historical data but also to take action based on that data. In this way, we can analyze data to make smarter decisions, leading us to an exponential efficiency in our processes. These services operate both locally and in the cloud - our best friend in the 21st century. It will depend entirely on the solution requirements, and of course, the budget available for the project.

In this guide, I provide a comprehensive set of directions on how to acquire environmental data to transmit it to a cloud service using Helium technology - the world's first peer-to-peer wireless network that provides a secure and cost-effective way for low-power Internet of Things devices to send data to and from the Internet.

Best of all, you don't have to be an expert to get started. So, let's begin: 

![](https://lh4.googleusercontent.com/vmk0lUwRj6DiyETCTIiW1vIJR7Qyn0Qj4xbIYGdHozM2d9k9DRSi_woCGD_b2dmjcXXyo1v-HWPKeQH5VA0hgSgRg4mnORMdvQD63fg5DHyDh1HZnPKkGB-MS2Ph2SuYfsJv9HkX)

As you can see in the architecture above, the environmental data is acquired by a [RAK7204 WisNode Sense Home](https://store.rakwireless.com/collections/wisnode/products/rak7204-lpwan-environmental-node). It sends the data to the Internet over the [Helium LongFi network](https://www.helium.com/technology#longfi), which combines the [LoRaWAN](https://lora-alliance.org/about-lorawan) wireless protocol with [Helium Blockchain](https://www.helium.com/technology#blockchain) so that any LoRaWAN compatible device can transfer data. Once the data has been received in the Helium console, it is decoded to forward the data to [Ubidots](https://ubidots.com/), an Internet of Things (IoT) platform that allows monitoring and control of all the acquired data. 

Step-by-step
------------

1.  Prerequisites 

2.  RAK7204 WisNode Sense Home and Helium Integration

3.  Helium and Ubidots Integration

4.  Ubidots Setup

5.  What's next?

1\. Prerequisites
-----------------

Hardware

-   [WisNode Sense Home (RAK7204)](https://store.rakwireless.com/collections/wisnode/products/rak7204-lpwan-environmental-node)

-   [Helium Hotspot](https://www.helium.com/store) / [RAK Hotspot Miner](https://store.rakwireless.com/products/rak-hotspot-miner)

Software

-   [Ubidots account](https://industrial.ubidots.com/accounts/signup_industrial/)

2\. RAK7204 WisNode Sense Home and Helium Integration
-----------------------------------------------------

The RAK7204 is an LPWAN Node with an integrated high-precision environmental sensor. It can measure changes in temperature, humidity, air pressure. All the data sensed can be sent to Helium through a [Helium Hotspot](https://www.helium.com/store) / [RAK Hotspot Miner](https://store.rakwireless.com/products/rak-hotspot-miner) to be forwarded to the cloud later.

IMPORTANT NOTE: In this guide, we assume that you already have a hotspot configured in the Helium Console, or that you have [network coverage nearby](https://network.helium.com/coverage). 

### Helium Setup

To manage our devices in the Helium Console, we must use "[Labels](https://developer.helium.com/console/labels)." A powerful mechanism that provides scalability and flexibility to our projects by organizing devices, assigning integrations, adding functions, and so on.

Step 1: To add a new label, go to "Labels > Create a new label." 

Step 2: Assign a Label name. For example, "RAK7204 WisNodes". Then, click on "Create a label."

Step 3: To add a new device, go to "Devices > Add a new device."

Step 4: Assign a Device Name.  For example, "RAK7204 #1". Then, attach the label previously created and click on "Submit."

Step 5: Click on the device created, and save the Device EUI, App EUI, App Key for the RAK7204 setup.

![](https://lh3.googleusercontent.com/PzGJ613Y11obGxQ-O-3DPihUZHM6222duoudZtZb7025eIGvB7YpLulJONjlWuyj1fn9nBfuKwG2ontn18OSsFxx5KJr8J2484vlp1SC95cIqwAzZF9hpEugGZTHactjLDxJjxLH)

Step 6: To decode the incoming data, a decoder function must be created. Go to "Functions > Create New Function". 

Step 7: Assign a function name. Then, choose "Decoder" as Function Type, and "Custom script" as Format.

Step 8: Paste the following code inside the code editor box.

```js
// Function to decode uplink data.

// Decode decodes an array of bytes into an object.

//  - port contains the LoRaWAN fPort number

//  - bytes is an array of bytes, e.g. [225, 230, 255, 0]

// The function must return an object, e.g. {"temperature": 22.5}

function  Decoder(bytes, port) {

 var decoded = {};

 var hexString=bin2HexStr(bytes);

 return rakSensorDataDecode(hexString);

}

// convert an array of bytes to hex string.

// e.g: 0188053797109D5900DC140802017A0768580673256D0267011D040214AF0371FFFFFFDDFC2E

function bin2HexStr(bytesArr) {

 var str = "";

 for(var i=0; i<bytesArr.length; i++) {

   var tmp = (bytesArr[i] & 0xff).toString(16);

   if(tmp.length == 1) {

tmp = "0" + tmp;

   }

   str += tmp;

 }

 return str;

}

// convert string to short integer

function parseShort(str, base) {

 var n = parseInt(str, base);

 return (n << 16) >> 16;

}

// convert string to triple bytes integer

function parseTriple(str, base) {

 var n = parseInt(str, base);

 return (n << 8) >> 8;

}

// decode Hex sensor string data to object

function rakSensorDataDecode(hexStr) {

 var str = hexStr;

 var myObj = {};

 while (str.length > 4) {

   var flag = parseInt(str.substring(0, 4), 16);

   switch (flag) {

     case  0x0768:// Humidity

       myObj.humidity = parseFloat(((parseShort(str.substring(4, 6), 16) * 0.01 / 2) * 100).toFixed(1)) + "%RH";//unit:%RH

       str = str.substring(6);

       break;

     case  0x0673:// Atmospheric pressure

       myObj.barometer = parseFloat((parseShort(str.substring(4, 8), 16) * 0.1).toFixed(2)) + "hPa";//unit:hPa

       str = str.substring(8);

       break;

     case  0x0267:// Temperature

       myObj.temperature = parseFloat((parseShort(str.substring(4, 8), 16) * 0.1).toFixed(2)) + "°C";//unit: °C

       str = str.substring(8);

       break;

     case  0x0188:// GPS

       myObj.latitude = parseFloat((parseTriple(str.substring(4, 10), 16) * 0.0001).toFixed(4)) + "°";//unit:°

       myObj.longitude = parseFloat((parseTriple(str.substring(10, 16), 16) * 0.0001).toFixed(4)) + "°";//unit:°

       myObj.altitude = parseFloat((parseTriple(str.substring(16, 22), 16) * 0.01).toFixed(1)) + "m";//unit:m

       str = str.substring(22);

       break;

     case  0x0371:// Triaxial acceleration

       myObj.acceleration_x = parseFloat((parseShort(str.substring(4, 8), 16) * 0.001).toFixed(3)) + "g";//unit:g

       myObj.acceleration_y = parseFloat((parseShort(str.substring(8, 12), 16) * 0.001).toFixed(3)) + "g";//unit:g

       myObj.acceleration_z = parseFloat((parseShort(str.substring(12, 16), 16) * 0.001).toFixed(3)) + "g";//unit:g

       str = str.substring(16);

       break;

     case  0x0402:// air resistance

       myObj.gasResistance = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "KΩ";//unit:KΩ

       str = str.substring(8);

       break;

     case  0x0802:// Battery  Voltage

       myObj.battery = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "V";//unit:V

       str = str.substring(8);

       break;

     case  0x0586:// gyroscope

       myObj.gyroscope_x = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "°/s";//unit:°/s

       myObj.gyroscope_y = parseFloat((parseShort(str.substring(8, 12), 16) * 0.01).toFixed(2)) + "°/s";//unit:°/s

       myObj.gyroscope_z = parseFloat((parseShort(str.substring(12, 16), 16) * 0.01).toFixed(2)) + "°/s";//unit:°/s

       str = str.substring(16);

       break;

     case  0x0902:// magnetometer x

       myObj.magnetometer_x = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "μT";//unit:μT

       str = str.substring(8);

       break;

     case  0x0a02:// magnetometer y

       myObj.magnetometer_y = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "μT";//unit:μT

       str = str.substring(8);

       break;

     case  0x0b02:// magnetometer z

       myObj.magnetometer_z = parseFloat((parseShort(str.substring(4, 8), 16) * 0.01).toFixed(2)) + "μT";//unit:μT

       str = str.substring(8);

       break;

     default:

       str = str.substring(7);

       break;

   }

 }

 return myObj;

}
```

Step 9: Attach the label previously created and click on "Save Function."

![](https://lh5.googleusercontent.com/yUEquBimkFbdDTfRYudFcG7aEO3tB07J0oRZ8hf21jKxjLIH8UlaxPtcI16-pnpUkbzrxqsZYYhKtmyzcD0lDd1PHzofY7Dq_zzy-dDrT0Em8tnh8aych2MYvWoCgPeRke11u187)

### RAK7402 Setup

The WisNode Sense works out of the box with firmware supporting LoRaWAN. We just need to interface with it using the [RAK Serial Port tool](https://downloads.rakwireless.com/LoRa/Tools/) to set up the parameters necessary to join the Helium Network. To start with the tool, follow all the steps provided in the guide below:

-   [Interfacing with the RAK7204 WisNode Sense Home](https://docs.rakwireless.com/Product-Categories/WisNode/RAK7204/Quickstart/#interfacing-with-the-rak7204-wisnode-sense-home)

Once the serial communication with the device has been successfully established, check the firmware version with the AT command (at+version) and [update it to the latest version](https://docs.rakwireless.com/Product-Categories/WisNode/RAK7204/Quickstart/#burning-the-firmware) if needed. We can then execute the following commands to set the parameters required to establish a connection with the Helium Network.

Step 1: Set OTAA as activation mode

-   OTAA activation mode: at+set_config=lora:join_mode:0

Step 2: Type the following AT command to set the: Frequency/Region, Device EUI, Application EUI, and Application Key. Remember to replace the "xxxx" with the corresponding parameter provided in the helium device creation process (Figure X, Step X, etc.).

-   Frequency/Region: at+set_config=lora:region:xxxxxx

-   Device EUI: at+set_config=lora:dev_eui:xxxxxxxxxxxxxxxx

-   Application EUI: at+set_config=lora:app_eui:xxxxxxxxxxxxxxxx

-   Application Key: at+set_config=lora:app_key:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

![](https://lh3.googleusercontent.com/JxoUXO3x08-MfCNG4CHGTulEs5GLJYKiQW4ILusucTA47H95BjmFpH4zFvXE5iA-zQHMi3l9crVWrQBSaSNWqSpnZyp-zif4NYE5G3W2dHNW4_x_0jdCHyk-u99SvdzZLTsrYbIp)

Step 3: Join the network in OTAA mode:

-   Join: at+join

![](https://lh5.googleusercontent.com/35fGwEprtizEq1bWH5IVWzNsHEgxEIBbzDU-mSD5WTsNNdDWOxZsZy4V_eYvZFQrJcZEbL71eO2dt3ee9zvDNAsR2Q9z_KbNGVW-MJfV1zMk_KahyuNQ_eUyCGFfo6lpIYLrtpIW)

Step 4: Set the interval of sending data:

-   Interval set up: at+set_config=lora:send_interval:X:Y

![](https://lh4.googleusercontent.com/0qhVb8lCKLvcD129C448S0srRLDyrR_zaHwzeu-xq-V2O5eph4kRIFlVqzqunCrUSDj51kzexDx3WTxB6sxo1HMAgWwZ_cmiF2uoxSjWdmHGspR4CJI829WqCkzG3bwFqOxbjyh3)

Where:

-   X - open or close the interval mechanism of sending data. If X is set to 0, the device will not send data automatically. If X is set to 1, the device will send data every Y second.

-   Y - interval time in seconds. This parameter is only valid when X is set to 1.

Now you can visualize the sensor data as it is arriving in real-time in the Helium console. Enter the page of the device you just created and check the Event Log section at the bottom:

![](https://lh3.googleusercontent.com/DwPQAHVxgimEHkVqfqSa8Xty-1FgSGfHpUzfdzpjui1fkrzSFUECwxeMR6b3lRELBF1OpmT6tJ7JUIk6E8Idz6YAiN6hz0dTwB0W3oUdAMY-3ZB_XFOTSaIqKpnp1kOAxFG-IZHW)

3\. Helium and Ubidots Integration
----------------------------------

To push data from the Helium console to Ubidots to develop and deploy IoT applications, you can use a Helium feature called "[Integrations](https://developer.helium.com/console/integrations)." This feature simply forwards all the incoming data received to Ubidots using an [UbiFunction](https://help.ubidots.com/en/articles/2132086-analytics-ubifunctions-user-guide). 

### UbiFunction Setup

The UbiFunction will handle Helium's [JSON schema](https://developer.helium.com/console/integrations/json-schema) to manage both uplink and downlink messages within the platform.

NOTE: Due to the presented solution not utilizing downlink messages, the example below will not manage this message type. In case you desire to manage downlink messages, you must handle an HTTP POST request to the URL provided under the key "downlink_url" received in the JSON schema.

Follow the instructions below to create an UbiFunction in your Ubidots account:

Step 1: Click on "Devices > Function" 

Step 2: Click the plus icon ("+") button located in the upper-right corner.

Step 3: Assign a name for your UbiFunction. For example, "Helium Integration." 

Step 4: Select "POST" as the Method 

Step 5: Select "NodeJS 10" as the Runtime 

Step 6: Leave the "Time-based trigger" option disabled 

Step 7: Paste the code below in the UbiFunction Editor.

```js
// Import the 'axios' library so we can make HTTP request from the function

var axios = require("axios");

// Define Ubidots constant

const  UBI_TOKEN = "BBFF-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

const  UBI_URL_API_2 = "https://industrial.api.ubidots.com/api/v2.0";

const  UBI_URL = "https://industrial.api.ubidots.com/api/v1.6";

// Main function - runs every time the function is executed.

// "args" is a dictionary containing both the URL params and the HTTP body (for POST requests).

async  function main(args) {

 var data = {};

  var appEUI = args["app_eui"];

 var payload = args["decoded"]["payload"];

 var payloadStatus = args["decoded"]["status"];

 var devEUI = args["dev_eui"];

 var devAddr = args["devaddr"];

 var downlinkUrl = args["downlink_url"];

 var nodeId = args["id"];

 var organizationId = args["metadata"]["organization_id"];

 var name = args["name"];

 var payloadBase64 = args["payload"];

 var reportedAt = args["reported_at"];

 // Check if the device does not exist in Ubidots Platform

 var deviceStatus = await ubidotsGetDevice(UBI_TOKEN, devAddr);

 // If the device does not exist, create it

 if (deviceStatus == 404) {

   await ubidotsDeviceCreation(UBI_TOKEN, name, devAddr);

 };

 // Filter the payload received from helium

 const variables = Object.entries(payload).reduce((previous, current) => {

   const [key, value] = current;

   const varValue = parseFloat(value);

   const unit = value.replace(/[\d\.]/g, '')

   return [...previous, [key, varValue, unit]];

 }, []);

 // Create respective custom variables

 for (const variable of variables) {

   var variableStatus = await ubidotsVariableCreation(UBI_TOKEN, devAddr, variable[0], variable[0], variable[2]);

   data[variable[0]] = variable[1]

 }

 // Send variables' values to Ubidots

 var variablesRequest = await ubidotsSendVariableValues(UBI_TOKEN, devAddr, data);

  return {"status": variablesRequest};

}

/*

* Create a custom device in Ubidots Platform

* API Documentation: docs.ubidots.com

*

* @arg token [Mandatory], Ubidots account's Token

* @arg deviceName [Mandatory], device's friendly name

* @arg deviceLabel [Mandatory], the single and unique label of a device

* @arg lat [Optional], latitude corresponding to the device's location

* @arg lng [Optional], longitude corresponding to the device's location

*

* @return response/error, request response

*/

async  function ubidotsDeviceCreation(token, deviceName, deviceLabel, lat = 0, lng = 0) {

 var endpoint = UBI_URL_API_2.concat("/devices");

 var deviceParams = {

   "label": deviceLabel,

   "name": deviceName

 };

 if (lat != 0 && lng != 0) {

   deviceParams.properties = {

     "_location_type":"manual",

     "_location_fixed": {

       "lat": lat,

       "lng": lng

     }

   };

 }

 return axios.post(endpoint, deviceParams, {

   headers: {

     "content-type": "application/json",

     "X-Auth-Token": token

   }

 })

 .then(function (response) {

   //console.log(response);

 })

 .catch(function (error) {

   //console.log(error.response);

 });

}

/*

* Get an existent device in Ubidots Platform

* API Documentation: docs.ubidots.com

*

* @arg token [Mandatory], Ubidots account's Token

* @arg deviceLabel [Mandatory], a single and unique label of a device

*

* @return response/error, request response

*/

async  function ubidotsGetDevice(token, deviceLabel) {

 var endpoint = UBI_URL_API_2.concat("/devices/~" + deviceLabel);

 return axios.get(endpoint, {

   headers: {

     "content-type": "application/json",

     "X-Auth-Token": token

   }

 })

 .then(function (response) {

   return response.statusText;

 })

 .catch(function (error) {

   return error.response.status;

 });

}

/*

* Create a custom variable in Ubidots Platform

* API Documentation: docs.ubidots.com

*

* @arg token [Mandatory], Ubidots account's Token

* @arg deviceLabel [Mandatory], the single and unique label of a device

* @arg variableName [Mandatory], variable's friendly name

* @arg variableLabel [Mandatory], the single and unique label of variable

* @arg unit [Mandatory], unit associated to the value of the variable

*

* @return response/error, request response

*/

async  function ubidotsVariableCreation(token, deviceLabel, variableName, variableLabel, unit) {

 var endpoint = UBI_URL_API_2.concat("/variables");

  var variableParams = {

   "label": variableLabel,

   "name": variableName,

   "device": "~".concat(deviceLabel).toLowerCase(),

   "unit": unit

 };

 return axios.post(endpoint, variableParams, {

   headers: {

     "content-type": "application/json",

     "X-Auth-Token": token

   }

 })

 .then(function (response) {

   return response.statusText;

 })

 .catch(function (error) {

   return error.response.status;

 });

}

/*

* Handle a POST request to Ubidots API

* API Documentation: https://ubidots.com/docs/sw/

*

* @arg token [Mandatory], Ubidots account's Token

* @arg device_label [Mandatory], a single and unique label of a device

* @arg payload [Mandatory], variables and values to be sent in a JSON format

*

* @return response/error, request response

*/

async  function ubidotsSendVariableValues(token, deviceLabel, payload) {

 var endpoint = UBI_URL.concat("/devices/" + deviceLabel);

  return axios.post(endpoint, payload, {

   headers: {

     "content-type": "application/json",

     "X-Auth-Token": token

   }

 })

 .then(function (response) {

   return response.statusText;

 })

 .catch(function (error) {

   return error.response.status;

 });

}
```

Step 8: Replace the value of the variable called "UBI_TOKEN" with the [Ubidots Token](https://help.ubidots.com/en/articles/590078-find-your-token-from-your-ubidots-account) associated with your account.

Step 9: Save the UbiFunction by clicking on the "Make it live" button located in the down-left corner 

Step 10: Copy the URL generated under the "HTTPS Endpoint URL" box.

Once the function has been successfully created, you must observe the following: 

![](https://lh5.googleusercontent.com/0W7cEkOkF8l0C6kGro9qEMPd6MNOjqw5WhFtD3GUDT6iOFvlWDvYM6n9D-5EGHkL6tFR06NpAhZlXcCIuJKbNz2L_Ik8YvVv3Bh3VD0I7nM5HoL-FMgsHqPEkDCSn5Ki-MzAnpGO)

### Helium Integration Setup

The Helium Integration enables devices to connect to pre-configured, cloud-based applications or send data directly over HTTP or MQTT. For this project, we're going to be using the HTTP integration.

Follow the instructions below to create an Integration in your Helium console:

Step 1: From left side navigation, click on "Integrations." 

Step 2: Choose "HTTP" as the custom integration type

Step 3: Under the "HTTP Connection details" option, assign "POST" as a method, and the UbiFunction  HTTPS Endpoint URL as Endpoint.

Step 4: Assign a name for your Helium Integration. For example, "Ubidots Integration." 

Step 5: Assign the "Label" associated with the device you desire to integrate with Ubidots. 

Step 6: Save the integration by clicking on the "Create Integration" button

Once the integration has been successfully created, you must observe the following: 

### ![](https://lh5.googleusercontent.com/iS65PXfhtxYDp-kJOVjNUsjRc2fM-iB2pPNR63z571DxMg4YsfemGVYjAarmKmw5VOJtlGBcmL7-DMziIp1mo_Y9KPa0VJQ4u8iAcv7FpKNwXCWEP0eyJHkQxEX9RyWdnngs64Li)

### Integration Test

Once you have set up both services, the environmental values sensed by the RAK7402 will be updated once the next data package arrives at the Helium console.

To check if the integration is running successfully. Go to the helium console and click on the "Devices" section. Then, choose any device that contains the label associated with the Ubidots integration, and click on the debug option:

![](https://lh5.googleusercontent.com/jYxe_DfC96qwvq7EFM454cQV-W-goXfnRDqE132Rv9pZMs6cRxsm1kikO2mwUmbjuebihNxQ-EuaXbXZEB3KLJ2W8Z1X_ZHMnfyohzIai_f_vloms_6uP16h9UdRfariicxIbMuK)

At this point, you can notice the message "Waiting for data..." in the debug console until a new data packet is received. Once received, the following response will be reported in the Integration option:

![](https://lh3.googleusercontent.com/mh2bhCoYlDuUC2z--g9DR9R7Q9GOO9AWZOs18wfpCpRBpbDPHjqmWtlADNE6rI4rw5kWKLsDT3G07TQSJUYOi9TAm92MUpEhUAe9amClpiyTNxlgmh5JF7CaN9TUD4OrChnjTFzf)

After clicking on the created device, we can see all the environmental variables reported by the RAK7204 WisNode Sense Home.

The last step is to check if the data arrived properly in the Ubidots Platform. Go to the account and click on "Devices > Devices" in this section, we will notice that a new device has been automatically created. After clicking on the device, we can see all the environmental variables reported by the RAK7204 WisNode Sense Home:

![](https://lh4.googleusercontent.com/eS3u48LDrTpnpQKAf5vxAaIWNo-o6uu-cxfW7FvpJlqodRBsm4RwUlDXq02TX32e00WcVRgC7cUPblnaTJFPCBNLdZi7oiYO405M6taJPbtNuTcvxACSuKLpFo4nKNnOn54zipIS)

Voilà, that's how easy was the integration between RAK products with helium and Ubidots.

In case you have more than one RAK7204 configured in the Helium console, they will also be automatically created in Ubidots, as long as all the devices manage the same label. Do you have 1, 100, or 1000 devices? No problem. With this single integration, you would be able to support all the devices you wish. 😉

4\. Ubidots setup
-----------------

Ubidots is an IoT platform with the potential of managing IoT applications with just a couple of clicks. It doesn't matter if you're an IoT enthusiast, or if you're looking to build an application for end-users, they have the right tools. To learn more about the Ubidots' powerful features, I encourage you to visit their help center.

Below, we will show you how to create a custom dashboard to centralize all the environmental data in just one place. In addition to this, we will show how to do a branded platform for your company - just in case you are seeking to provide a final solution to a client. 

### Dashboard setup

Below we provide the basic steps to configure a dashboard. To become a pro setting up a custom dashboard at Ubidots, refer to the [official documentation](https://help.ubidots.com/en/articles/2400308-create-dashboards-and-widgets).

Step 1:  To create a new dashboard, navigate to "Data > Dashboard."

Step 2: Click on "New Dashboard" or the plus icon ("+") button located in the upper-right corner.

Step 3: Assign a name for your dashboard. For example, "WisNode Sense Home." 

Step 4: Assign any additional settings desired for the dashboard, whether it is the type of dashboard, appearance, format, among other things. For more detailed information, refer to [this guide](https://help.ubidots.com/en/articles/2400308-create-dashboards-and-widgets).

Step 5: To add a new widget, click on the plus icon ("+") button located in the upper-right corner.

Step 6: Select the desired widget type to display the data

Step 7: Under the "Data" field, click on "Add variable" and choose the variable you intend to show in the dashboard and set the desired widget configurations.

Step 8: To save the changes, click on the check green icon located in the bottom-right corner.

You can add as many widgets as you need for your dashboard. It's time to have a look at the variety of widgets offered by Ubidots. Once you have achieved this, you will have something like this:

![](https://lh3.googleusercontent.com/Yk95YH53HOYEl3wySPyPQY7EQz8c143VLjis3O92XsI7tVkJtn43-ytbfhKlhVYYxy5yiQelqF59QalBjx1eKvvoO8Y7GtzU85-NtcqviTLJRZ58jHbIazezDPaQnudlNCUajRMd)

### Ubidots App Setup

Delivering an IoT solution can become a nightmare when the right tools are not available. Using Ubidots powered apps, we can manage organizations and users, even customize the platform with a product's brand in an easy way.

As your Ubidots account's admin account, you're responsible for the creation, distribution, and access to any app you desired to create. The following diagram shows the 4 stages applied to develop and deploy an application using Ubidots

![](https://lh3.googleusercontent.com/ywfgSOoIRGQ3aNfe5mIvmpxJWZJZhkD3Jsl-KxoANmJ5RPatv6MYsFun3qbY6U1e4ueqDuc0d6qkzjlg__5lsVC9wwDU60Br6xQnXfDoBe7zHXoydJo76hR69EMM0_PLNwMMHpoA)

Source: Ubidots Help Center - https://help.ubidots.com/en/articles/2218155-ubidots-app-s

Refer to the [Ubidots App(s) official guide](https://help.ubidots.com/en/articles/2218155-ubidots-app-s) for a detailed explanation about each of the stages.

Meanwhile, see the following interfaces to have a better idea about the final application we can achieve:

![](https://lh4.googleusercontent.com/h3SXhvWWzW7FIj5HSdtEjO7plk72WnR_nTNf4bV_qE7BPi4RcDuFKOAH3phsJMzFbAwBdmUg_EOpVvgKmXw8pzl4wpBeW0_tNukhgGGyUDAEWpkSw5UR9W-s1EYzH_G-lS7Lau78)

![](https://lh4.googleusercontent.com/VVCskt8pyL0V-9G2D200uIQMQKiKv6NRtPJO-pUXzUA7hUPwTDuRITBuuZVMTgb9nKpFKz4CHQcHLdRljzbSmrXDKjpdKmyrFGlet7wa2rWqpJqK4tCN3HDdDucHy_Vzd3bc9tih)

![](https://lh4.googleusercontent.com/EinmknJCLnGEEDJ0i90UWNEihC_c39Pk-iYv5Ma3h8YNQZdkTxqRj9gVQyHBGrmyB3aDhCPu_u3zWoLDj4yiKfTjcUn0gty96m_ESMRCrhQc6GVaRuSsuKDTLYYgYuHrp0_HUrzi)

That's how easy it is to create a 100% customized IoT platform with your product's brand. 

![](https://lh6.googleusercontent.com/PCqIh9u_4A-2Hm4GGizBM2oxNUO3yd9TCgIDGVkTSVqNmrz3A7-SHPb6OfakRBLZ7G6byGqKa9IxsItZ8GGIJg4IgpLuWiCIKjuR2fbYTqAng148gid9BabEtoKnkTLTRd2UubTK)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

4\. What's next?
----------------

Did you ever consider that it was so simple and easy to develop a custom IoT application? If you're looking for a quick and reliable way to monitor environmental data, you've read the right guide. With this integration, it doesn't matter how many sensors you intend to install. Just follow the same steps to integrate as many as you need under the Helium Network, then Ubidots will take over and create them automatically.

To manage alarms or actions based on the data, you can also explore the [Ubidots' Events module](https://help.ubidots.com/en/articles/1445537-events-creating-conditional-events-and-alerts), which offers a variety of options.

What's next? It's time to try it yourself. You can use the resources listed below to further your exploration of the world of IoT.

-   [RAK end-users devices that serve a case scenario in a cost-efficient manner](https://docs.rakwireless.com/Product-Categories/WisNode/)

-   [From prototype to the final product and mass production with WisBlock](https://docs.rakwireless.com/Product-Categories/WisBlock/)

-   [Build a DIY Helium Hotspot](https://developer.helium.com/hotspot/developer-setup)