           clearPrintTitle();
           lcd.setCursor(0, 1); lcd.print(F("HD: ")); lcd.print(HP1); lcd.print(F(":")); lcd.print(MP1); lcd.print(F(" | HF: ")); lcd.print(HP2); lcd.print(F(":")); lcd.print(MP2);
           lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(TEMP_CIBLEP1); 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(HP2); lcd.print(F(":")); lcd.print(MP2); lcd.print(F(" | HF: ")); lcd.print(HP3); lcd.print(F(":")); lcd.print(MP3);
           lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(TEMP_CIBLEP2); 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(HP3); lcd.print(F(":")); lcd.print(MP3); lcd.print(F(" | HF: ")); lcd.print(HP1); lcd.print(F(":")); lcd.print(MP1);
           lcd.setCursor(0, 2); lcd.print(F("TEMP.CIBLE : ")); lcd.print(TEMP_CIBLEP3); lcd.print(F("C"));
+          lcd.setCursor(0,3); lcd.print(F("RAMPING : "));  lcd.print(ramping); lcd.print(F(" min"));
           break;
         case 4:
           lcd.noBlink();

  
void setSunRise(uint8_t * when){
      HSR = when[2];
      MSR = when[1];}
void setSunSet(uint8_t * when){
      HSS = when[2];
      MSS = when[1];}
      
void Controle() {
  //-----------------Horloge----------------
  checkSunriseSunset();
  t = rtc.getTime();
  int heures = t.hour;
  int minutes = t.min;

  if (((heures == HSR)  && (minutes >= MSR))||((heures > HSR) && (heures < HP2))||((heures == HP2)  && (minutes < MP2))){
    TEMP_CIBLE = TEMP_CIBLEP1;
    PROGRAMME = 1;
  }
  else if (((heures == HSR)  && (minutes >= MSR))||((heures > HSR) && (heures < HP2))||((heures == HP2)  && (minutes < MP2))){
    TEMP_CIBLE = TEMP_CIBLEP2;
    PROGRAMME = 2;
  }
  else if (((heures == HSS)  && (minutes >= HSS))||(heures > HSS)||(heures < HSR)||((heures == HSR)  && (minutes < MSR))){
    TEMP_CIBLE = TEMP_CIBLEP3;
    PROGRAMME = 3;
  }
  //--------------DS18B20--------------------
  sensors.requestTemperatures();
  greenhouseTemperature = sensors.getTempCByIndex(0);
  //--------------Relais--------------------
  //Programme d'ouverture/fermeture des rollups
  if (greenhouseTemperature < (TEMP_ROLLUP - HYST_ROLLUP)) {

    digitalWrite(ROLLUP_CLOSE, OFF);
    Serial.println(F("  Done closing"));
    lcd.setCursor(0, 1);
    lcd.print(F("ROLLUPS:  "));
    lcd.setCursor(9, 1);
    lcd.print(incrementCounter);
    delay(PAUSE_TIME);
  }
}
