Works in arduino IDE but does not work when implementing in cloud

I am trying to get the code below to work. It works flawlessly in the IDE. Does not work when using this cloud platform. Very simple test code to read analog values...

void loop() {
ArduinoCloud.update();
// Your code here

Serial.println(analogRead(A2));

delay(100);

}