Can't verify and safe code for MKR1400 Weather-Station

Hello there,
Currently I am programming a self powering weather station with solar and GSM. The DHT22, BMP280 and DS1820 are directly connected to the MKR1400 and this is connected with the Arduino IOT Cloud. This is a first version of a code, pretty short but it worked. It worked until I uploaded another code from the arduino app on the computer that didn't work. So it wanted to upload the old code from the web app over USB again but since then this error is displayed:

In file included from /home/builder/opt/libraries/latest/onewireng_0_8_2/src/OneWire.h:18:0,

from /tmp/598152490/Untitled_jul26b/Untitled_jul26b.ino:3:

/home/builder/opt/libraries/latest/onewireng_0_8_2/src/platform/Platform_New.h:27:14: note: 'void* operator new(size_t, void*)' previously defined here

inline void *operator new(size_t size, void *ptr)

^~~~~~~~

Error during build: exit status 1
#include "DHT.h" //DHT22
#include "OneWire.h" // Water
#include "DallasTemperature.h" //Water
#include "Wire.h" //Pressure
#include "SPI.h" //Pressure
#include "Adafruit_BMP280.h" //Pressure
#include "thingProperties.h" //Cloud
/*---------------------------------------definitions----------------------------------------*/
#define DHTPIN 8 //DHT22
#define DHTTYPE DHT22 //DHT22
#define ONE_WIRE_BUS 2 //Water
/*--------------------------------------initializations-------------------------------------*/
DHT dht(DHTPIN, DHTTYPE); //DHT22
OneWire oneWire(ONE_WIRE_BUS); //Water
DallasTemperature sensors(&oneWire); //Water
Adafruit_BMP280 bmp; //Pressure
/*--------------------------------------void setup------------------------------------------*/
void setup() {
  Serial.begin(9600);
  delay(1500);
  dht.begin(); //DHT22
  sensors.begin(); //Water
  bmp.begin(); //Pressure
  initProperties();
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);

  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}
/*--------------------------------------void loop--------------------------------------------*/
void loop() {
  ArduinoCloud.update();
  static unsigned long lastMeasurement = millis();
  if ((millis() - lastMeasurement) > 3000) {
    temperature = dht.readTemperature();
    Serial.print("Temperatur: ");
    Serial.print(temperature);
    Serial.println(" C");

    humidity = dht.readHumidity();
    Serial.print("Humidity: ");
    Serial.print(humidity);
    Serial.println(" %\t");

    sensors.requestTemperatures();
    temp_water = sensors.getTempCByIndex(0);
    Serial.print("Wassertemmperatur betrÃĪgt: ");
    Serial.print(temp_water);
    Serial.println(" C");

    pressure_air = bmp.readPressure();
    Serial.print("Pressure is: ");
    Serial.print(pressure_air);
    Serial.println(" PA");

    lastMeasurement = millis();
  }
}

What has happened, and how can I solve it?
Thank you for helping, Lukas

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.