 
 void setup()
 {
+  pinMode(LED1, OUTPUT);
+  digitalWrite(LED1, LOW);
+  bLed1 = true;
+  pinMode(LED2, OUTPUT);
+  digitalWrite(LED2, LOW);
+  
   bme.begin();
   SoftSerial.begin(9600);
   Serial.begin(9600);

            value += current;
          }
          
          //String sLat = getValue(value,',',2);
          //float fLat = (sLat.substring(0,2)).toFloat() + (sLat.substring(2,4)).toFloat() / 60.0f + (sLat.substring(4,9)).toFloat() / 60.0f;
          //String sLong = getValue(value,',',4);
          //float fLong = (sLong.substring(0,2)).toFloat() + (sLong.substring(2,4)).toFloat() / 60.0f + (sLong.substring(4,9)).toFloat() / 60.0f;

          String sLat = getValue(value,',',2);
          if(sLat == "")
            sLat = "0";

{
  checkButton();
  
  unsigned long currentMillis = millis();
  
  if ((unsigned long)(currentMillis - previousMillisLED) >= ledInterval) {
    setLed(2);
    previousMillisLED = millis();
  }
  
  if ((unsigned long)(currentMillis - previousMillisTPHv2) >= tphInterval) {
    checkTPHv2();
    previousMillisTPHv2 = millis();
  }

  if ((unsigned long)(currentMillis - previousMillisGPS) >= gpsInterval) {
    checkGPS();
    previousMillisGPS = millis();
  }
}
