Arduino IoT Cloud connnection issues

Hi,

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:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 
  Serial.println("Hello world");
  // Defined in thingProperties.h
  initProperties();
  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}
void loop() {
  ArduinoCloud.update();
  // Your code here 
  int sensor1 = analogRead(A1);
  
  Serial.println(sensor1);
  
  delay(1000);
 }
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.
Thanks!