 #include <SPI.h>
 #include <LoRa.h>
+#include <Wire.h>
 
 // WIFI_LoRa_32 ports
 // GPIO5 — SX1278’s SCK

    airHumid = dht.readHumidity();
  }  
  Serial.print("Sending packet: ");
  display.clear();
  display.setFont(ArialMT_Plain_16);
  display.drawString(10, 0, "Sending packet ");
  display.setFont(ArialMT_Plain_10);
  LoRa.beginPacket();
  if (GOT_LIGHT_SENSOR) {
    Serial.println(lux);
    display.drawString(10, 20, String(lux));
    LoRa.print("Lux: ");
    LoRa.println(lux); 
  }
  if (GOT_TEMP_SENSOR) {
    Serial.println(temp,1);
    display.drawString(10, 35, String(temp,1));
    LoRa.print("Temp: ");
    LoRa.println(temp,1);
  }
  if (GOT_HUMID_SENSOR) {
    Serial.println(airCelsius,1);
    Serial.println(airHumid,1);
    display.drawString(50, 35, String(airCelsius,1));
    display.drawString(90, 35, String(airHumid,1));
    LoRa.print("Air Temp: ");
    LoRa.println(airCelsius,1);
    LoRa.print("Air Humid: ");
    LoRa.println(airHumid,1);
  }

  display.display();
  LoRa.endPacket();

  digitalWrite(25, HIGH); // turn the LED on (HIGH is the voltage level)

  airCelsius = dht.readTemperature();
  if (isnan(airHumid) || isnan(airCelsius)) {
    Serial.println("NO humidity sensor!");
//  display.drawString(10,40,"NO humidity sensor!");
  } else {
    GOT_HUMID_SENSOR = true;
    Serial.println("Humidity sensor found");
//  display.drawString(10,40,"Humidity sensor found");
  }
//display.display();
  delay(2000);
}

