     const float absoluteHumidity = 216.7f * ((humidity / 100.0f) * 6.112f * exp((17.62f * temperature) / (243.12f + temperature)) / (273.15f + temperature)); // [g/m^3]
     const uint32_t absoluteHumidityScaled = static_cast<uint32_t>(1000.0f * absoluteHumidity); // [mg/m^3]
     return absoluteHumidityScaled;
+}
+
+void bump_counter() {
+	counter++;
+	if (counter == 10000) {
+		counter = 1000;
+	}
 }
 
 void setup()

		sgp_read();
	}

	counter++;
	if (counter == 100) {
		counter = 10;
	}

	delay(5000); // wait 5 seconds for the next I2C scan
}


}

void sgp_read() {
	bump_counter();
	// If you have a temperature / humidity sensor, you can set the absolute humidity to enable the humditiy compensation for the air quality signals
	//float bme_temperature = 22.1; // [°C]
	//float bme_humidty = 45.2; // [%RH]
	if (has_bme) {
		sgp.setHumidity(getAbsoluteHumidity(bme_temperature, bme_humidty));
	}
	
	Serial.print("MIKROESAM3X_AQC:");
	Serial.print(counter);
	Serial.print(":TVOC:");
	Serial.print(sgp.TVOC);
	Serial.print(":ppb:eCO2:");
	Serial.print(sgp.eCO2);
	Serial.println(":ppm:#");

	delay(1000);

	counter_sgp++;
