       digitalWrite(PIN_TO_DIGITAL(13), LOW); 
     }*/
 
-    DewExt=dewPoint(T22ext,Hr22ext);
-    if (T22ext<=DewExt+2) { 
-       dewing=1;
-    } else {
-       dewing=0;
-    }
 #endif //USE_DHT_SENSOR_EXTERNAL    
 
 //#ifdef USE_LIGHT_SENSOR

      //PIN 14->A0, 24->A10, 33->A19
      
       case 0:     
               result=Light;
               break;
       /*case 1:     
               break;   
       case 2:     
               break;       
       case 3:     
               break;                      
       case 4:     
               break;       
       case 5:     
               break;                   
       case 6:     
               result=(IR+273)*20;
               break;     
       case 7:     
               result=(Tir+273)*20;
               break;   
       case 8:     
               result=P;
               break;       
       case 9:     
               result=(Tp+273)*20;
               break;                      
       case 10:     


//Comment out if you setup don't include some sensor.
//#define USE_DHT_SENSOR_INTERNAL   //USE INTERNAL DHT HUMITITY SENSOR. Comment if not.
#define USE_DHT_SENSOR_EXTERNAL   //USE EXTERNAL DHT HUMITITY SENSOR. Comment if not.
#define USE_IR_SENSOR   //USE MELEXIS IR SENSOR. Comment if not.
#define USE_P_SENSOR   //USE BME280 PRESSURE SENSOR. Comment if not.
//#define USE_WIND_SENSOR   //USE ANEMOMETER type SWITCH. Comment if not.
#define USE_LIGHT_SENSOR   //USE SOLAR PANEL AS LIGHT SENSOR. Comment if not.
//#define USE_DHT_RAIN_SENSOR   //USE TELECONTROLLI CAPACITIVE RAIN SENSOR. Comment if not.

//All sensors (T22int=DHT22 INT,T22ext=DHT22 EXT,Tir=MELEXIS and Tp=BME280) include a ambient temperature
//Choose  that sensor, only one, is going to use for main Ambient Temperature:
//#define T_MAIN_T22ext
//#define T_MAIN_T22int
#define T_MAIN_Tir  
//#define T_MAIN_Tp

//Cloudy sky is warmer that clear sky. Thus sky temperature meassure by IR sensor
