   lcd.print("HEATING: ");
   lcd.setCursor(16,3);
   lcd.print("OFF");
+//--------------Horloge--------------------
+  rtc.begin();                      //Démarre la communication avec l'horloge
 //--------------DHT11--------------------
   dht.begin(); 
 //--------------General setup-------------------

LiquidCrystal_I2C  lcd(I2C_ADDR,2,1,0,4,5,6,7);
/* En_pin  2, Rw_pin  1, Rs_pin  0, D4_pin  4, D5_pin  5, D6_pin  6, D7_pin  7 
 */
//--------------DHT11--------------------
#include <DHT.h>
#define DHTPIN A1
//--------------Relais--------------------
//Sorties
const int ROLLUP1_POWER = 12;//relais on/off - moteur1

}

void loop() {    
//-----------------Horloge-----------------
  t = rtc.getTime();
  int heure = t.hour;
  int minutes = t.min;
 if (((heure >= HP1)  && (heure < HP2))  && (minutes >= MP1)){
    TEMP_CIBLE = TEMP_CIBLEP1;
    TEMP_ROLLUP = TEMP_ROLLUPP1; 
    TEMP_VENT = TEMP_VENTP1; 
    TEMP_CHAUFFAGE1 = TEMP_CHAUFFAGE1P1;
    TEMP_CHAUFFAGE2 = TEMP_CHAUFFAGE2P1;;
    PROGRAMME = 1;
  }
  else if(((heure >= HP2)  && (heure < HP3))  && (minutes >= MP2)){
    TEMP_CIBLE = TEMP_CIBLEP2;
    TEMP_ROLLUP = TEMP_ROLLUPP2; 
    TEMP_VENT = TEMP_VENTP2; 
    TEMP_CHAUFFAGE1 = TEMP_CHAUFFAGE1P2;
    TEMP_CHAUFFAGE2 = TEMP_CHAUFFAGE2P2;
    PROGRAMME = 2;
  }
  else if((heure >= HP3)  && (minutes >= MP3)){
    TEMP_CIBLE = TEMP_CIBLEP3;
    TEMP_ROLLUP = TEMP_ROLLUPP3; 
    TEMP_VENT = TEMP_VENTP3; 
    TEMP_CHAUFFAGE1 = TEMP_CHAUFFAGE1P3;
    TEMP_CHAUFFAGE2 = TEMP_CHAUFFAGE2P3;;
    PROGRAMME = 3;
  } 
  //--------------DHT11--------------------
  float greenhouseTemperature = dht.readTemperature();
  float greenhouseHumidity = dht.readHumidity();
//--------------Relais--------------------
