Problem to link my variable inside my dashboard

Hi from France,

I need your help because I don't understand how link my variable inside my dashboard.

/* 
  Croquis généré par l'Arduino IoT Cloud Thing "Untitled 3"
https://create.arduino.cc/cloud/things/a72ec01c-3784-4148-8991-b4f23a9a142f

Description des variables Arduino IoT Cloud

Les variables suivantes sont automatiquement générées et mises à jour lorsque des modifications sont apportées à l'objet

Température CloudTemperatureSensor ;

Les variables marquées comme LECTURE/ÉCRITURE dans l'objet Cloud auront également des fonctions
qui sont appelées lorsque leurs valeurs sont modifiées à partir du tableau de bord.
Ces fonctions sont générées avec l'objet et ajoutées à la fin de ce croquis.
*/

#include "thingProperties.h"
#include <Wire.h>                         // Librairie I2C  
#include <LiquidCrystal_I2C.h>     // Librairie Lcd1602 I2C
#include <OneWire.h>
#include <DallasTemperature.h>

const int oneWireBus = 13;     
LiquidCrystal_I2C lcd(0x27,16,2); 
OneWire oneWire(oneWireBus);
DallasTemperature sensors(&oneWire);

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);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

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

  lcd.init();  // initialize the lcd
  // Start the Serial Monitor
  Serial.begin(9600);
  // Start the DS18B20 sensor
  sensors.begin();

  sensors.requestTemperatures(); 
  float temperature = sensors.getTempCByIndex(0);
  Serial.print(temperature);
  Serial.println("ºC");
  delay(1000);
//}
// Affichage sur LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("Temp. piscine : ");
  lcd.setCursor(1,1);
  lcd.print(temperature);
  lcd.setCursor(6,1);
  lcd.print(" Celcius");
  delay(1000);
}

My target is to see the temperature variable inside my dashboard and when I select it my dashboard display nothing ?

Can you help me ?

Hello

I edited your post to make it readable as everything was garbled.

please read How to get the best out of this forum and post accordingly (including code with code tags and necessary documentation for your ask like your exact circuit and power supply, links to components etc).


Regarding your question, did you study the cloud examples ? they show how to share a variable with the dashboard