Arduino Cloud Sensor Tower
Connect a basic sensor station to Arduino Cloud and visualize real time data.
Following this tutorial you will build a little tower with several sensors and connect it to Arduino Cloud to visualize Real time data.
Connect to Arduino Cloud
Create an account and login to Arduino Cloud.
Go ahead, create a new thing and name it “sensorTower” without quotes.
Now you can create a property.
A property defines the kind of data you want to monitor from the Arduino Cloud dashboard.
- Property name
- Property type: specify the measurement unit
- Property policy: specify when you want the data to be sent to the dashboard, either when the property values changes or after certain intervals of time.
- Update Frequency: If Update Regularly is selected: specify the duration of the intervals.
For this project we will need as many properties as data we want to monitor: Temperature, humidity, gas detection, motion detection and light intensity.
Once you created all the 5 properties, click on the Code button and visualize a pre-filled sketch.
As you can see, the generated code already contains the code necessary to create the ArduinoCloudThing Object ():
Creates the object
Initialize it with the device credentials
sensortower.begin(thingName, userName, thingId, thingPsw, sslClient);
Enable the debugger (this is optional)
The generated sketch also contains the properties configuration.
sensortower.addProperty("temperature", FLOAT, R);
In order to change the value of the property you can use
Download the generated code and upload it to your board.
!!! Remember to fill in the data required to connect to the network!!!
/////// Wifi Settings /////// char ssid = ""; char pass = "";
Switch back to the dashboard view. If everything is working correctly you should see some value changing on your screen. OH YEAH!!!
Read more: Arduino Cloud Sensor Tower