   }
 }
 
+void goToSleep(){
+  softwareSerial.end();
+  Serial.println(F("Going to sleep mode..."));
+  delay(40);
+  LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);//   8Sec
+  LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);// + 8Sec
+  LowPower.powerDown(SLEEP_4S, ADC_OFF, BOD_OFF);// + 4Sec
+                                                 // = 20Sec
+  Serial.println(F("Woke up!"));
+  softwareSerial.begin(9600);
+}
+

    Serial.println(F("BUOY-ID=001"));
    Serial.print(F("SIZE="));
    Serial.println(csvFile.size());
    Serial.println(F("DATE;TIME;HUMIDITY;AIR-TEMPERATURE;WATER-TEMPERATURE;LAT;LONG;HEADING;"));
    Serial.println(F("--BODY--"));
    while(csvFile.available()){
      Serial.write(csvFile.read());

  result += String(gps.location.lat(), 6);
  result += ";";
  result += String(gps.location.lng(), 6);
  result += ";";
  result += String(gps.satellites.value());
  result += ";";
  if(saveDataToSD){
    saveValueToSD(result, false);
