       }
       if (measure[0]==0xff && measure[1]==0x86){
         ppm = measure[2]*256+measure[3];
-        so2=ppm;
+        so2=calibrate(ppm, so2_x2, so2_x1, so2_b);
 
         #if defined(DEVMODE)
         Serial.print("  [SO2]: ");

void warn(){
    digitalWrite(RED_LED_PIN,HIGH);
}

 if (client.connect(server, 80)) {
   #if defined(DEVMODE)
   Serial.println("connecting...");
   Serial.print("GET ");
   Serial.print("/api");
   Serial.print("/"); Serial.print(device); Serial.print("/"); Serial.print(password);
   Serial.print(monthDay); Serial.print(month);Serial.print(year); Serial.print(hour);Serial.print(minute);
   #endif
   //String getRequest ="GET"+"hola"+" "
   // send the HTTP GET request:
   client.print("GET ");
   client.print("/api");
   client.print("/"); client.print(device); client.print("/"); client.print(password);
   // HTTP time
   client.print(monthDay);client.print(month);client.print(year);client.print(hour);client.print(minute);
   //http GET end
