     Serial.println(F("Packet queued"));
   }
   // Next TX is scheduled after TX_COMPLETE event.
-
-  //Messwerte der Sensoren
-
-  //Serial.print(bme.readTemperature());
-
-  /*Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA));
-
-    Serial.print(bme.readHumidity());*/
 }
 
 void setup() {




static uint8_t mydata[5];
static osjob_t sendjob;

// Schedule TX every this many seconds (might become longer due to duty

  Serial.println(humidity); 
  Serial.println(mydata[3]); 
  Serial.println(); 
  Serial.println(mydata[4]);
  

  sensorValue = analogRead(analogInPin); 
  float voltage = (3.3/4096*sensorValue);
  float strom = (voltage/10020);
  float lichtstrom = (strom*2*1000000);
  lichtstrom = lichtstrom / 6.5852;         //In Prozent 658,52 (Maximalwert) / 100
  uint8_t lichtstrom_int = (uint8_t) lichtstrom;

  Serial.print("Helligkeit: "); 
  Serial.print(lichtstrom);
  Serial.print("%");
  Serial.print("\n");
  

  mydata[5] = lichtstrom_int;

  soilPower = analogRead(soilPin); 

  uint8_t percent = (uint8_t) ((analogRead(A2)/33.30F) * 100); 
  Serial.println(percent);
  
  mydata[6] = percent; 

  
}


void do_send(osjob_t* j) {
  
  sensor_data();

  // Check if there is not a current TX/RX job running
