New Topic - Error in IoT Cloud Kit Tutorial

No need to say thank you, the typo in the instructions is totally our fault! :see_no_evil:

I gave you an incomplete information: in addition to removing bool you need to move that line inside setup(). Try this complete code:

#include "thingProperties.h"
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;
 
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);
 
  // Defined in thingProperties.h
  initProperties();
 
  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
 
  //Get Cloud Info/errors , 0 (only errors) up to 4
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
 
  //Wait to get cloud connection to init the carrier
  while (ArduinoCloud.connected() != 1) {
    ArduinoCloud.update();
    delay(500);
  }
 
  delay(500);
  CARRIER_CASE = false;
  carrier.begin();
  carrier.display.setRotation(0);
  
}
 
void loop() {
  ArduinoCloud.update();
 
  temperature = carrier.Env.readTemperature();
  humidity = carrier.Env.readHumidity();
 
  delay(1000);
}