     case 0:
       switch (y) {
         case 1:
-          float temperature;
-          #ifdef DS18B20
-            sensors.requestTemperatures();
-            temperature = sensors.getTempCByIndex(0);
-          #endif
-          #ifdef SHT1X
-              temperature = sht1x.readTemperatureC();
-          #endif
           lcd.noBlink();
           clearPrintTitle();
-          lcd.setCursor(0, 1); lcd.print(F("Sonde temp. : ")); lcd.print(temperature); lcd.print(F("C"));
+          lcd.setCursor(0, 1); lcd.print(F("Sonde temp. : ")); lcd.print(greenhouseTemperature()); lcd.print(F("C"));
           break;
         case 2: switchmenu(1); break;
         case 3: switchmenu(2); break;
         case 4: switchmenu(3); break;
         case 5: switchmenu(4); break;
-        case 6: switchmenu(0); break;
+        case 6: switchmenu(5); break;
       }
       break;
     //-------------------------------SelectMenu1-----------------------------------------

      }
      break;
    //-------------------------------SelectMenu22-----------------------------------------
    //SET ROTATION TIME
    case 22 :
      if (y < Nbitems) {
        //rotation = y;
        EEPROM.update(ROTATION, y);
        switchmenu(2);
      }
      else {
        switchmenu(2);
      }
      break;
    //-------------------------------SelectMenu23-----------------------------------------
    //"5", "15", "20", "30", "45", "60", "75", "90", "120", "back"
    case 23 :
      int pause;
      switch (y) {
        case 1: pause = 5; switchmenu(2); EEPROM.write(PAUSE, pause);break;
        case 2: pause = 15; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 3: pause = 20; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 4: pause = 30; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 5: pause = 45; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 6: pause = 60; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 7: pause = 75; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 8: pause = 90; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 9: pause = 120; switchmenu(2); EEPROM.write(PAUSE, pause); break;
        case 10: switchmenu(2); break;
      }
      break;

    //-------------------------------SelectMenu3-----------------------------------------
    case 3 :
      switch (y) {
        case 1:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("FAN : "));
          if (digitalRead(FAN[0]) == OFF) {
            lcd.print(F("OFF"));
          }
          else {
            lcd.print(F("ON"));
          }
          lcd.setCursor(0, 2); lcd.print(F("Temp. cible : ")); lcd.print(tempCible+EEPROM.read(VMOD)-10); lcd.print(F("C"));
          lcd.setCursor(0, 3); lcd.print(F("Hysteresis : ")); lcd.print(EEPROM.read(VHYST)); lcd.print(F("C"));
          break;
        case 2: switchmenu(31); break;
        case 3: switchmenu(0); break;
      }
      break;
    //-------------------------------SelectMenu31-----------------------------------------
    //SET HYSTERESIS
    case 31 :
      if (y < Nbitems) {
        switchmenu(3);
        EEPROM.write(1, y);
      }
      else {
        switchmenu(3);
      }
      break;
    //-------------------------------SelectMenu4-----------------------------------------
    case 4 :
      switch (y) {
        case 1:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("FOURNAISE(1) : "));
          if (digitalRead(CHAUFFAGE[0]) == OFF) {
            lcd.print(F("OFF"));
          }
          else {
            lcd.print(F("ON"));
          }
          lcd.setCursor(0, 2); lcd.print(F("Temp. cible : ")); lcd.print(tempCible+EEPROM.read(HMOD)-10); lcd.print(F("C"));
          lcd.setCursor(0, 3); lcd.print(F("Hysteresis : ")); lcd.print(EEPROM.read(HHYST)); lcd.print(F("C"));
          break;
        case 2:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("FOURNAISE(2) : "));
          if (digitalRead(CHAUFFAGE[1]) == OFF) {
            lcd.print(F("OFF"));
          }
          else {
            lcd.print(F("ON"));
          }
          lcd.setCursor(0, 2); lcd.print(F("Temp. cible : ")); lcd.print(tempCible+EEPROM.read(HMOD+1)-10); lcd.print(F("C"));
          lcd.setCursor(0, 3); lcd.print(F("Hysteresis : ")); lcd.print(EEPROM.read(HHYST+1)); lcd.print(F("C"));
          break;
        case 3: switchmenu(41); break;
        case 4: switchmenu(42); break;
        case 5: switchmenu(0); break;
      }
      break;
    //-------------------------------SelectMenu41-----------------------------------------
    //SET HYSTERESIS
    case 41 :
      if (y < Nbitems) {
        switchmenu(4);
        EEPROM.update(HHYST, y);
      }
      else {
        switchmenu(4);
      }
      break;
    //-------------------------------SelectMenu42-----------------------------------------
    //SET HYSTERESIS
    case 42 :
      if (y < Nbitems) {
        switchmenu(4);
        EEPROM.write(HHYST+1, y);
      }
      else {
        switchmenu(4);
      }
      break;
    //-------------------------------SelectMenu5-----------------------------------------
    //"Programme 1", "Programme 2", "Programme 3", "Modificateurs" "Set Programme 1", "Set Programme 2", "Set Programme 3", "Set Modificateurs", "back"
    case 5 :/*
      switch (y) {
        case 1:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("HD: ")); lcd.print(P[0][HEURE]); lcd.print(F(":")); lcd.print(P[0][MINUTE]); lcd.print(F(" | HF: ")); lcd.print(P[1][HEURE]); lcd.print(F(":")); lcd.print(P[1][MINUTE]);
          //lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(tempCibleE[0]); lcd.print(F("C"));
          //lcd.setCursor(0,3); lcd.print(F("RAMPING : "));  lcd.print(ramping); lcd.print(F(" min"));
          break;
        case 2:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("HD: ")); lcd.print(P[1][HEURE]); lcd.print(F(":")); lcd.print(P[1][MINUTE]); lcd.print(F(" | HF: ")); lcd.print(P[2][HEURE]); lcd.print(F(":")); lcd.print(P[2][HEURE]);
          //lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(tempCibleE[1]); lcd.print(F("C"));
          //lcd.setCursor(0,3); lcd.print(F("RAMPING : "));  lcd.print(RAMPING); lcd.print(F(" min"));
          break;
        case 3:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("HD: ")); lcd.print(P[2][HEURE]); lcd.print(F(":")); lcd.print(P[2][HEURE]); lcd.print(F(" | HF: ")); lcd.print(P[0][HEURE]); lcd.print(F(":")); lcd.print(P[0][MINUTE]);
          //lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(tempCibleE[2]); lcd.print(F("C"));
          //lcd.setCursor(0,3); lcd.print(F("RAMPING : "));  lcd.print(RAMPING); lcd.print(F(" min"));
          break;
        case 4:
          lcd.noBlink();
          clearPrintTitle();
          lcd.setCursor(0, 1); lcd.print(F("TEMP.CIBLE : ")); lcd.print(tempCible);
          lcd.setCursor(0, 2); lcd.print(F("RMod:")); lcd.print(EEPROM.read(RMOD)-11);
          lcd.setCursor(8, 2); lcd.print(F("| HMOD[0]:")); lcd.print(EEPROM.read(HMOD)-11);
          lcd.setCursor(0, 3); lcd.print(F("VMOD[0]:")); lcd.print(EEPROM.read(VMOD)-11);
          lcd.setCursor(8, 3); lcd.print(F("| HMOD[1]:")); lcd.print(EEPROM.read(HMOD+1)-11);
          break;
        case 5: switchmenu(51); break;
        case 6: switchmenu(52); break;
        case 7: switchmenu(53); break;
        case 8: switchmenu(54); break;
        case 9: switchmenu(55); break;
        case 10: switchmenu(0); break;
      }*/
      break;
    //-------------------------------SelectMenu51-----------------------------------------
    case 51:
      switch (y) {
        case 1: switchmenu(511);break;
        case 2: switchmenu(512); break;
        case 3: switchmenu(5); break;
      }
      break;
    //-------------------------------SelectMenu511-----------------------------------------
    //SET MINUTES PAST/BEFORE SUNRISE
    case 511 :
      if (y < Nbitems) {
        EEPROM.write(SSMOD, y);
        switchmenu(51);
      }
      else {
        switchmenu(51);
      }
      break;
    //-------------------------------SelectMenu512-----------------------------------------
    //SET tempCible
    case 512 :
      if (y < Nbitems) {
        //tempCibleE[0] = y-1;
        switchmenu(51);
        //EEPROM.write(TEMP_CIBLEE, y-1);
      }
      else {
        switchmenu(51);
      }
      break;
    //-------------------------------SelectMenu52-----------------------------------------
    case 52:
      switch (y) {
        case 1: switchmenu(521);break;
        case 2: switchmenu(522); break;
        case 3: switchmenu(5); break;
      }
      break;
    //-------------------------------SelectMenu521-----------------------------------------
    //SET HOUR
    case 521 :
      if (y < Nbitems) {
        //P[1][HEURE] = y;
        switchmenu(5211);
        //EEPROM.write(7, P[1][HEURE]);
      }
      else {
        switchmenu(52);
      }
      break;
    //-------------------------------SelectMenu5211-----------------------------------------
    //SET MINUTES
    case 5211 :
      if (y < Nbitems) {
        //P[1][MINUTE] = (y - 1);
        switchmenu(52);
        //EEPROM.write(8, P[1][MINUTE]);
      }
      else {
        switchmenu(52);
      }
      break;
    //-------------------------------SelectMenu522-----------------------------------------
    //SET tempCible
    case 522 :
      if (y < Nbitems) {
        //tempCibleE[1] = y-1;
        switchmenu(52);
        //EEPROM.write(9, tempCibleE[1]);
      }
      else {
        switchmenu(52);
      }
      break;
    //-------------------------------SelectMenu53-----------------------------------------
    //"Heure", "Tempcible", "back"
    case 53:
      switch (y) {
        case 1: switchmenu(531); break;
        case 2: switchmenu(532); break;
        case 3: switchmenu(5); break;
      }
      break;
    //-------------------------------SelectMenu531-----------------------------------------
    //SET MINUTES PAST/BEFORE SUNSET
    case 531 :
      if (y < Nbitems) {
        //SSMOD[0] = y;
        //EEPROM.write(10, SSMOD[0]);
        switchmenu(53);
      }
      else {
        switchmenu(53);
      }
      break;
    //-------------------------------SelectMenu532-----------------------------------------
    //SET tempCible
    case 532 :
      if (y < Nbitems) {
        //tempCibleE[2] = y-1;
        switchmenu(53);
        //EEPROM.write(12, tempCibleE[2]);
      }
      else {
        switchmenu(53);
      }
      break;
    //-------------------------------SelectMenu54-----------------------------------------
    //
    case 54:
      switch (y) {
        case 1: switchmenu(541); break;
        case 2: switchmenu(542); break;
        case 3: switchmenu(543); break;
        case 4: switchmenu(544); break;
        case 5: switchmenu(5); break;
      }
      break;
    //-------------------------------SelectMenu541-----------------------------------------
    //SET MOD
    case 541 :
      if (y < Nbitems) {
        //tempRollup = tempCible + y -11;
        switchmenu(54);
        EEPROM.write(15, y);
      }
      else {
        switchmenu(54);
      }
      break;
    //-------------------------------SelectMenu541-----------------------------------------
    //SET MOD
    case 542 :
      if (y < Nbitems) {
        switchmenu(54);
        EEPROM.write(16, y);
      }
      else {
        switchmenu(54);
      }
      break;
    //-------------------------------SelectMenu541-----------------------------------------
    //SET MOD
    case 543 :
      if (y < Nbitems) {
        switchmenu(54);
        EEPROM.write(17, y);
      }
      else {
        switchmenu(54);
      }
      break;
    //-------------------------------SelectMenu541-----------------------------------------
    //SET MOD
    case 544 :
      if (y < Nbitems) {
        switchmenu(54);
        EEPROM.write(18, y);
      }
      else {
        switchmenu(54);
      }
      break;//-------------------------------SelectMenu541-----------------------------------------
    //SET ramping interval
    case 55:/*
    if (y < Nbitems) {
        RAMPING = y-1;
        EEPROM.read(RAMPING)*60*1000 = ((unsigned long)y-1)*60*1000;
        EEPROM.write(19, RAMPING);
        switchmenu(5);
      }
      else {
        switchmenu(5);
      }*/
      break;
  }

}

        case 2:
          lcd.noBlink();
          clearPrintTitle();
          getDateAndTime();
          lcd.setCursor(0, 1); lcd.print(F("Time : ")); lcdPrintDigits(sunTime[HEURE]);lcd.print(":"); lcdPrintDigits(sunTime[MINUTE]);lcd.print(":");lcdPrintDigits(sunTime[MINUTE]);
          break;
        case 3: switchmenu(11); break;
