You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/06.nicla/boards/nicla-sense-env/tutorials/environmental-monitor-application-note/content.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -622,7 +622,7 @@ In this section, we will connect the environmental monitor to Arduino Cloud. The
622
622
623
623
***If you are new to Arduino Cloud, please check out [this tutorial](https://docs.arduino.cc/arduino-cloud/guides/overview/).***
624
624
625
-
Please, begin by creating a new Thing in your Arduino Cloud with the following variables:
625
+
Please, begin by creating a new **Thing** in your Arduino Cloud with the following variables:
626
626
627
627
- cloudTemperature
628
628
- cloudHumidity
@@ -632,7 +632,9 @@ Please, begin by creating a new Thing in your Arduino Cloud with the following v
632
632
633
633
All of the variables must be **`float`** type, have **`Read Only`** permission and a **`On Change`** update policy.
634
634
635
-
The complete example sketch is shown below.
635
+
On the `thingProperties.h` header, update your Wi-Fi credentials (SSID and PASS).
636
+
637
+
The complete example sketch is shown below and can be downloaded from [here](assets/cloud_air_quality_monitor.zip).
636
638
637
639
```arduino
638
640
/**
@@ -880,7 +882,7 @@ void readSensors() {
880
882
// Update RGB LED color based on AQI
881
883
if (airQualityIndex <= 50) {
882
884
rgbLED.setColor(0, 255, 0); // Green for good air quality
883
-
} else if (airQualityIndex <= 100) {
885
+
} else if (airQualityIndex <= 150) {
884
886
rgbLED.setColor(255, 255, 0); // Yellow for moderate air quality
885
887
} else {
886
888
rgbLED.setColor(255, 0, 0); // Red for unhealthy air quality
0 commit comments