Hi, i'm pretty new to the world of arduino iot cloud and recently i bought a Nano 33 iot. I'm working with a temperature sensor, the MLX90614 and trying to save the temperature in the IoT cloud. First i uploaded the sketch to turn on and off a LED, and it worked all fine, but when i added the sensor and uploaded the code, in the serial monitor i found this:
Cryptography processor failure. Make sure you have a compatible board.
***** Arduino IoT Cloud - configuration info *****
Device ID:
Thing ID: xxxxxxx
MQTT Broker: xxxxx
WiFi.status(): 0
Current WiFi Firmware: 1.2.3
Connected to "xxxxxx"
Arduino IoT Cloud Connection status: CONNECTING
Arduino IoT Cloud connecting ...
So it doesn't connect to IoT Cloud, also if i try to upload any other code, it doesn't let me upload it because the serial port is considered busy. The sensor uses I2C protocol, i also tried to use the sensor without connecting to Cloud, and it worked fine, so the problem comes up only if i want to use the sensor and the IoT Cloud at the same time. This is the code i wrote:
#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include "thingProperties.h"
#define ledPin 4
#define buttonPin 7
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
float misura;
void setup() {
Serial.begin(9600);
delay(1500);
while(!Serial);
mlx.begin();
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
pinMode(ledPin,OUTPUT);
pinMode(buttonPin,INPUT_PULLUP);
}
void loop() {
ArduinoCloud.update();
if(digitalRead(buttonPin) == LOW){
misura = mlx.readObjectTempC();
Serial.println(misura);
delay(700);
}
}
void onLuceChange() {
digitalWrite(ledPin,luce);
}
Please help me, i really need to get this done