 #define LORA_CRC        true  //Default: false
 /////////////////////////////////////////////////////////////
 
-SSD1306 display(0x3c, 4, 15);
 String rssi = "RSSI --";
 String packSize = "--";
 String packet ;

  Serial.println(distance);
  sendPacket("W:" + String(distance));

  delay(10000);
}

void sendPacket(String contents) {
  display.clear();
  display.setTextAlignment(TEXT_ALIGN_LEFT);
  display.setFont(ArialMT_Plain_10);
  
  display.drawString(0, 0, "Sending packet: ");
  display.drawString(90, 0, contents);
  display.display();

  // send packet
  LoRa.beginPacket();
  String packet = (contents);

#include <LoRa.h>
#include <Wire.h>  
#include "SSD1306.h"
#include "esp_deep_sleep.h"

#define echoPin 12 // Echo Pin
#define trigPin 13 // Trigger Pin
