     Serial.print(" lux: ");
     Serial.print(lux);
 
-    if (good) l=lux; else l="undefined";
+    if (good) l=lux; else l=-99;
     return l;
   }
 }

  byte message[] = {0xFF,0x01, 0x78, 0x03, 0x00, 0x00, 0x00, 0x00, 0x84};
  unsigned long sampletime_ms = 30000;
  unsigned long starttime=millis();
  unsigned long starttime=millis();
  switch (var) {
    case 1:
      Serial1.write(message,siseof(message));
      //for(;sampletime_ms > millis() - starttime;){
      if (Serial1.available() > 0) {
        byte measure[8];
        Serial1.readBytes(measure,9);
        incomingByte = Serial1.read();
        int ppm = measure[2]*256+measure[3];
      }
      //}
      break;
    case 2:
      Serial2.write(message,siseof(message));
      if (Serial2.available() > 0) {
        byte measure[8];
        Serial2.readBytes(measure,9);
        incomingByte = Serial2.read();
        unsigned float ppm = (measure[2]*256+measure[3])*0.1;
      }
      break;
    case 3:
      Serial1.write(message,siseof(message));
      if (Serial3.available() > 0) {
        byte measure[8];
        Serial3.readBytes(measure,9);
        incomingByte = Serial3.read();
        unsigned float  ppm = (measure[2]*256+measure[3])*0.1;
      }
    break;
  }
  winsenBegin(); //disable sensors.
}

 * Meteorology read function
 */
void meteorologyRead(){
  p = pressureRead();
  l = lightRead();
  h = humidityRead();  // 1* medir humedad
  t = temperatureRead();// 2* medir temperatura
