   } else {
     bme_ok = true;
   }
-  
+
+  // TODO get rid of dummy values
   randomSeed(analogRead(A0));
   float t = 49.7 + random(7);
   float h = 76.5 - random(5);

    h = bme.readHumidity();

    if (isnan(t) || isnan(h)) {
      delay(50);
      t = bme.readTemperature() - 1;
      h = bme.readHumidity();

      if (isnan(t) || isnan(h)) {
        Serial.println("Ooop Cannot get meaningful values..Sleeping");
        ESP.deepSleep(3e6);
      }
    }

    /*
    Serial.print("T ");
    Serial.print(t);
    Serial.print(" H ");
    Serial.println(h);
    */
    
    //*
    if (systemState.roundsWithoutTransmission < 5) {

  while (WiFi.status() != WL_CONNECTED) {
    unsigned long now = millis();
    if (now - connectStart > 5000) {
      sleepNowForFailedConnect(5000L, now - systemStart);

      /*
      // This has 15mA instead of 70mA (above) or 1mA with deep sleep
