This example shows how LoRa™ can be used to monitor the quality of your surrounding environment.
Measure in- and outdoor air quality, noise levels and temperature to provide stakeholders a dashboard to support their decision making to improve quality of living.
If you did the basic example on the previous page, your device is already created and ready for use.
If not, please check the create a device section.
environmental-sensing
example sketchenvironmental-sensing
example sketchlorawan-rdk-payload-definition.json
in the textarea. You find this file in the examples/binary-payload folder of the arduino-lorawan-rdkEnter your device keys similar to how we did in our basic example.
Simply hit the upload icon in the Arduino IDE. This will save the sketch, compile it and upload it to your Arduino.
After uploading, you might need to flip the power switch on the Sodaq Mbili OFF and back ON to make sure the Mbili reboots and starts up our sketch.
You can now watch the values change in AllThingsTalk Maker.
Alternatively, you can open the Tools > Serial monitor of the Arduino IDE.
- Make sure you select the correct COM port to listen (under Tools > Port )
- When the monitor is open, make sure the Baud rate is set to 57600
To visualise our date, we will create a pinboard. For more information on pinboards, please check how to use pinboards.
Now we will pin a control (visual representation) for each of our assets (Loudness sensor, Light sensor, Temperature sensor, Humidity sensor, Pressure sensor and Air quality sensor).
Repeat this for each of our assets.
For extra options to customise your controls, please check the Controls page.