   DHT dhtExt(DHT_EXT_PIN, DHT_EXT_TYPE);
 #endif //USE_DHT_SENSOR_EXTERNAL
 
-                    /*#ifdef USE_P_SENSOR
-                      #include "Adafruit_BMP085.h"
-                      Adafruit_BMP085 bmp;
-                    #endif //USE_P_SENSOR*/
+#ifdef USE_P_SENSOR
+  #include <Adafruit_BME280.h>
+  Adafruit_BME280 bme; // I2C
+#endif //USE_P_SENSOR*/
 
 /*float HR,Thr,P,IR,T,Tp,Tir,Dew,Light,Clouds,skyT;*/
-float T22int,Hr22int,DewInt,T22ext,Hr22ext,DewExt,Light;
+float T22int,Hr22int,DewInt,T22ext,Hr22ext,DewExt,Light,Tp,P;
 float T,IR,Clouds,skyT,Tir;
 int cloudy,dewing,frezzing,windy,rainy,daylight;
 


void setupMeteoStation(){

        /*#ifdef USE_P_SENSOR
          bmp.begin();
        #endif //USE_P_SENSOR*/

#ifdef USE_DHT_SENSOR_INTERNAL
  dhtInt.begin();

//#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 SWITCH ANEMOMETER. 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 (ThrI=DHT22 INT,ThrE=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_ThrE
//#define T_MAIN_ThrI
//#define T_MAIN_Tir  
//#define T_MAIN_Tp

// Defin I2C address of the pressure sensor
#undef BME280_ADDRESS         // Undef BME280_ADDRESS from the BME280 library to easily override I2C address
#define BME280_ADDRESS (0x76)// address I2C du BME280

//Cloudy sky is warmer that clear sky. Thus sky temperature meassure by IR sensor
//is a good indicator to estimate cloud cover. However IR really meassure the
