 void setup() {
   Serial.begin(115200);
   Serial.println(F("Starting"));
+  
+  pinMode(DHT_VCC, OUTPUT);
+  pinMode(DHT22_PIN, INPUT);
+  
   // LMIC init
   os_init();
   lmic_init();

void loop() {
  startTime = millis();
  buildPayload();
  // Start job
  do_send(&sendjob);
  while(LMIC.opmode & OP_TXRXPEND)
  {

  result = 1125300L / result; // Calculate Vcc (in mV); 1125300 = 1.1*1023*1000
  return result; // Vcc in millivolts
}
