     // Sum output variable
     float checksum = stringCheck = T + frezzing + Light + daylight + T22int + Hr22int + T22ext + Hr22ext + DewExt +
     dewing + Tir + IR + skyT + Clouds + cloudy + P + Tp + WindSpeed + MaxWindSpeed + windy + Capacity +
-    rainy + Consigne + Temp + Mosfet ;
+    rainy + Consigne + TempRain + Mosfet ;
 
     // If everything is ok, function return TRUE
     if (isnan(checksum) || isinf(checksum)) {

     }
  }

  if ((Temp <= HOT_TEMPERATURE_SECURITY) | (Temp >= COLD_TEMPERATURE_SECURITY)) {
    regulHeat(Temp, Consigne);
  } else {
    if (rainy == 1) {
        Mosfet = 100;

  int samples[NUMSAMPLES];
  // Variables pour PID
  // Measured temperature
  double TempRain;
  // PWM value 0-255 :
  double Mosfet;

