Arduino IoT Cloud connnection issues


I am using Arduino MKR-1500 with the IoT cloud. I am using the Soracom sim to communicate to the CAT-M1 network. I am running a simple code to communicate to the cloud the change in the ADC value. The issue I am having are as follows:

  1. The connection between the Arduino and the cloud is not stable, that is the Arduino keeps showing connected and disconnected even when it is physically connected.
  2. When I probe the pin A1 to detect the ADC values it shows in the standalone version of the IDE but not on the serial monitor of the IoT cloud.
  3. The IoT cloud does not update the change in the ADC value at all.

Below is the code for reference.

#include "thingProperties.h"
int readSensor;
void setup() {
  // Initialize serial and wait for port to open:
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  Serial.println("Hello world");
  // Defined in thingProperties.h
  // Connect to Arduino IoT Cloud
void loop() {
  // Your code here 
  int sensor1 = analogRead(A1);
void onADCvalueChange() {
  // Do something

void onSmokedetectChange() {
  // Do something

void onSensor1Change() {
  // Do something

Below is the image of the serial monitor data:

Any help is greatly appreciated.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.