 
 		uint16_t TVOC_base, eCO2_base;
 		if (! sgp.getIAQBaseline(&eCO2_base, &TVOC_base)) {
-			Serial.println("Failed to get baseline readings:#");
+			Serial.println("MIKROESAM3X_DEBUG:Failed to get baseline readings:#");
 			return;
 		}
-		Serial.print("****Baseline values: eCO2: 0x");
+		Serial.print("MIKROESAM3X_DEBUG:Baseline values: eCO2: 0x");
 		Serial.print(eCO2_base, HEX);
 		Serial.print(" & TVOC: 0x");
 		Serial.print(TVOC_base, HEX);

#define AS3935_CS  B_CS
#define AS3935_INT B_INT

//SparkFun_AS3935 lightning;

int AS3935_intVal = 0;
int AS3935_noise = 2; // Value between 1-7 
int AS3935_disturber = 2; // Value between 1-10

const int TMP116_address    = 0x48;
const int TMP116_temp_reg   = 0x00;  // Temperature register
const int TMP116_config_reg = 0x01;  // Configuration register

int counter=1000;

bool has_bme = true;
bool has_sgp = true;

volatile float bme_temperature = 0;
volatile float bme_humidty = 0;


/* return absolute humidity [mg/m^3] with approximation formula
* @param temperature [°C]


void thunder_init()
{
	pinMode(AS3935_CS, OUTPUT);
	digitalWrite(AS3935_CS, HIGH);
	pinMode(AS3935_INT, INPUT);

	if( !lightning.beginSPI(AS3935_CS, 2000000) ){ 
		Serial.println ("MIKROESAM3X_DEBUG:Lightning Detector did not start up, freezing:#");; 
		has_thunder=false;
	}
	else
		Serial.println("MIKROESAM3X_DEBUG:Lightning Detector Ready:#");

	if (has_thunder) {
		lightning.setIndoorOutdoor(AS3935_OUTDOOR); 
	}
}
