#include "thingProperties.h"
#include <Wire.h>
//#include "MAX30105.h"
//MAX30105 particleSensor;
void setup() {
// Initialize serial and wait for port to open:
Serial.begin(9600);
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
delay(1500);
// Initialize the MAX30102 sensor
// if (!particleSensor.begin(Wire, I2C_SPEED_FAST)) {
Serial.println("MAX30102 was not found. Please check wiring/power. ");
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
// Your code here
//leituraSensor();
Serial.println();
Serial.print("Red LED: ");
//Serial.print(particleSensor.getRed());
Serial.print(" | ");
Serial.print("IR LED: ");
//Serial.print(particleSensor.getIR());
delay(5000);
}