   float Rsensor = SensorValue * 3.3 / 1023;
   value = pow(10, Rsensor);
   SendValue();
-  delay(60000);
+  delay(50000);
 
+
+  Device.Connect(DEV_ADDR, APPSKEY, NWKSKEY);
   //Modem.PrintModemStatus();
-  Modem.PrintModemConfig();
+//  Modem.PrintModemConfig();
 }
 
 void SendValue()


float value = 0;
int aantal = 0;

void loop()
{
  debug.print("\n");
  debug.print("\n");
  

  debug.print(aantal);
  debug.print("\n");
  aantal = aantal +1;
  Device.Send(value, NUMBER_SENSOR, ack);
  //ack = !ack;
}

