         }
         if(!dust.isSamplingComplete()) {
           unsigned long duration = pulseIn(DUST_PIN, LOW);
-          dust_concentration = dust.getConcentration(duration, current_ms);          
+          sample.dust_concentration = dust.getConcentration(duration, current_ms);          
         }
         if(mq131.isSamplingComplete() && dust.isSamplingComplete() && tgs2602.isSamplingComplete()) {
-          tgs2602_sewer = tgs2602.getSewerGasPercentage(tgs2602_sample_avg, tgs2602_Ro);            
-          mq131_ozone = mq131.getOzoneGasPercentage(mq131_sample_avg, mq131_Ro);
-          mq131_chlorine = mq131.getChlorineGasPercentage(mq131_sample_avg, mq131_Ro);          
+          sample.tgs2602_sewer = tgs2602.getSewerGasPercentage(tgs2602_sample_avg, tgs2602_Ro);            
+          sample.mq131_ozone = mq131.getOzoneGasPercentage(mq131_sample_avg, mq131_Ro);
+          sample.mq131_chlorine = mq131.getChlorineGasPercentage(mq131_sample_avg, mq131_Ro);          
           rs.setSamplingComplete();         
         }
         delay_ms=0;

#define DUST_SAMPLE_INTERVAL_MS 30000
void dht22_wrapper();
idDHT22 DHT22(D2, dht22_wrapper);
double temperature = 0;
double humidity = 0;

// --------------------------------------------------------------------- Shinyei PPD42NS
ShinyeiPPD42NS dust(DUST_SAMPLE_INTERVAL_MS);
float dust_concentration = 0;

// --------------------------------------------------------------------- TGS2602
TGS2602 tgs2602(SAMPLING_FREQUENCY, SAMPLING_INTERVAL_MS);
float tgs2602_Ro = 2.511;
int   tgs2602_sample_avg = 0;
int   tgs2602_sewer = 0;
char  tgs2602_display[10];

// --------------------------------------------------------------------- MQ131
MQ131 mq131(SAMPLING_FREQUENCY, SAMPLING_INTERVAL_MS);
float mq131_Ro = 2.501;
int   mq131_sample_avg = 0;
int   mq131_ozone = 0;
int   mq131_chlorine = 0;
char  mq131_display[10];

// --------------------------------------------------------------------- HTTP

  DHT22.acquire();
  while (DHT22.acquiring());    
    
  sample.humidity = DHT22.getHumidity();
  sample.temperature = DHT22.getCelsius(); 
}

void beep(int delay_ms) {
