Hardware required:

  • ESP-32:The ESP32 makes it easy to use the Arduino IDE and the Arduino Wire Language for IoT applications. This ESp32 IoT Module combines Wi-Fi, Bluetooth, and Bluetooth BLE for a variety of diverse applications. This module comes fully-equipped with 2 CPU cores that can be controlled and powered individually, and with an adjustable clock frequency of 80 MHz to 240 MHz. This ESP32 IoT WiFi BLE Module with Integrated USB is designed to fit in all ncd.io IoT products.
  • IoT Long Range Wireless Vibration And Temperature Sensor: IoT Long Range Wireless Vibration And Temperature Sensor is battery operated and wireless, meaning that current or communication wires need not be pulled to get it up and operating. It tracks the vibration information of your machine constantly and captures and operate hours at full resolution together with other temperature parameters.In this we are using NCD’s Long Range IoT Industrial wireless vibration and temperature sensor, boasting up to a 2 Mile range using a wireless mesh networking architecture.
  • Long Range Wireless Mesh Modem with USB Interface

Software Used:

Library Used:

  • PubSubClient Library
  • Wire.h

Steps to send data to labview vibration and temperature platform using IoT Long Range Wireless Vibration And Temperature Sensor and Long Range Wireless Mesh Modem with USB Interface-

Uploading the code to ESP32 using Arduino IDE:

  • Download and include the PubSubClient Library and Wire.h Library.
  • You must assign your unique Ubidots TOKEN, MQTTCLIENTNAME, SSID (WiFi Name) and Password of the available network.
  • Compile and upload the Ncd__vibration_and_temperature.ino code.
  • To verify the connectivity of the device and the data sent, open the serial monitor.If no response is seen, try unplugging your ESP32 and then plugging it again. Make sure the baud rate of the Serial monitor is set to the same one specified in your code 115200.

Serial monitor output.

Making the Ubidot work:

  • Create the account on Ubidot.
  • Go to my profile and note down the token key which is a unique key for every account and paste it to your ESP32 code before uploading.
  • Add a new device to your ubidot dashboard name esp32.

 Click on devices and select devices in ubidot.                                Click on devices and select devices in ubidot.

 Now you should see the published data in your Ubidots account, inside the device called "ESP32".
Now you should see the published data in your Ubidots account, inside the device called "ESP32".

  • Inside device create new variable name sensor in which your temperature reading will be shown.

Create New variable                                                  Create New variable

 Now you are able to view the Temperature and other sensors data which was previously viewed in serial monitor.This  happened because the value of  different sensor readings  is passed as a string and store in  variable and publish to variable inside  device esp32 .Now you are able to view the Temperature and other sensors data which was previously viewed in serial monitor.This  happened because the value of  different sensor readings  is passed as a string and store in  variable and publish to variable inside  device esp32 .

  • Create dashboard in ubidots.

 Go to data select dashboard and inside dashboard create different widgets and add new widget  to your dashboard screen.Go to data select dashboard and inside dashboard create different widgets and add new widget  to your dashboard screen.

OUTPUT