I require your help regarding a problem I’m encountering.
The MKR IoT Carrier that came with my Arduino IoT explore kit is having trouble connecting to sensors. I have completed Activity 1 of the kit, but whenever I disconnect and reconnect my board via USB, the serial output says:
19:56:33.680 -> Error detected! 19:56:33.680 -> Pressure sensor is not connected! 19:56:33.680 -> Environmental sensor is not connected! 19:56:33.680 -> Air quality sensor is not connected!
It usually works on a fresh upload but occasionally cannot connect to the pressure sensor.
MKR1010 WiFi Board & MKR IoT Carrier
Arduino IDE 2.0.3
My code: https://pastebin.com/wwMPQPJb
Troubleshooting steps already taken:
I have tried calling .begin() on the sensor classes of the carrier in the setup function to avail. I have tried including a longer delay between the serial connection and calling carrier.begin().
For some reason, the LED_BUILTIN does not blink using the Arduino Blink sketch when my IoT carrier is connected, but blinks fine when the board is solo. I am not sure if this is related to the issue with sensors or not, but I’d also like to understand why that’s happening.
Thank you so much in advance for your help!