 const int analogInPin = A1; //Analog input pin that potentiometer is attached to
 const int analogOutPin = 9; // Analog output pin that the LED is attached to
 
-int sensorValue = 0;        // value read from the pot
-int outputValue = 0;        // value output to the PWM (analog out)
+int lightsensorValue = 0;
 
 
 //Bodenfeuchtigkeitssensor
-int val = 0; //value for storing moisture value
-int soilPin = A2; //Declare a variable for the soil moisture sensor
-int soilPower = 7; //Variable for Soil moisture
+int gndSoilValue = 0; //value for storing moisture value
+int gndSoilPin = A2; //Declare a variable for the soil moisture sensor
+int gndSoilPower = 7; //Variable for Soil moisture
 
 
 // These callbacks are only used in over-the-air activation, so they are


 *******************************************************************************/

#include <lmic.h>
#include <hal/hal.h>
#include <SPI.h>

#include <Adafruit_BME280.h>
#include <Adafruit_Sensor.h>
#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme; //I2C


  delay (5000);
  bool status;

  //bme Initialisierung
  status = bme.begin();
  delay(1000);
  if (!status) {
