diff --git a/waste_watcher_code/waste_watcher_code.ino b/waste_watcher_code/waste_watcher_code.ino index 22a5e7c..ca7e12c 100644 --- a/waste_watcher_code/waste_watcher_code.ino +++ b/waste_watcher_code/waste_watcher_code.ino @@ -289,12 +289,12 @@ void setup() { esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); Serial.println("Setup ESP32 to sleep for every " + String(TIME_TO_SLEEP) + " Seconds"); + // === sd card setup === + sdSetup(); + // === ultrasonic setup === pinMode(ultrasonicTrigPin, OUTPUT); pinMode(ultrasonicEchoPin, INPUT); - - // === sd card setup === - sdSetup(); // === wifi setup === Serial.print("Connecting to ");