     }
     if (wifiIn == clear_to_send) {
       send_data();
+#if DEBUG
+      print_debug(5); //WiFi available
+    } else {
+      print_debug(8); //WiFi not available
+#endif      
     }
   }
 

    a = char(data_file.read());
    wifiSerial.write(a);
    delay(5);
    //Serial.write(a);
  }
  wifiSerial.write(end_of_file);
  data_file.close();

      delay(100);
    }

    String wifiIn("");
    while (wifiSerial.available()) {
      delay(100);
