1#include "thingProperties.h"
2int readSensor;
3void setup() {
4
5 Serial.begin(9600);
6
7 delay(1500);
8 Serial.println("Hello world");
9
10 initProperties();
11
12 ArduinoCloud.begin(ArduinoIoTPreferredConnection);
13 setDebugMessageLevel(2);
14 ArduinoCloud.printDebugInfo();
15}
16void loop() {
17 ArduinoCloud.update();
18
19 sensor1 = analogRead(1);
20 carbonMonoxide = analogRead(2);
21 methaneSensor = analogRead(3);
22 Serial.println(sensor1);
23 Serial.println(carbonMonoxide);
24 Serial.println(methaneSensor);
25 delay(1000);
26 }