"Error compiling for board Arduino UNO" message

Get message "error compiling for board Arduino UNO" when trying to compile example code example from Adafruit BME280 library on one of my computers using 1.8.15. I get no errors when compiling on two of my other computers using 1.8.15. Downloaded 1.8.16 and still get this message. Compiled multiple other sketches and they compile just fine. This is the only sketch that doesn't work. At a loss trying to figure this out.

/***************************************************************************
  This is a library for the BME280 humidity, temperature & pressure sensor

  Designed specifically to work with the Adafruit BME280 Breakout
  ----> http://www.adafruit.com/products/2650

  These sensors use I2C or SPI to communicate, 2 or 4 pins are required
  to interface. The device's I2C address is either 0x76 or 0x77.
 
  Written by Limor Fried & Kevin Townsend for Adafruit Industries.
  BSD license, all text above must be included in any redistribution
 ***************************************************************************/

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10

#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme; // I2C
//Adafruit_BME280 bme(BME_CS); // hardware SPI
//Adafruit_BME280 bme(BME_CS, BME_MOSI, BME_MISO, BME_SCK); // software SPI

unsigned long delayTime;

void setup() {  }
  /*
    Serial.begin(9600);
    Serial.println(F("BME280 test"));
    Serial.println(" sketch_sep06_2021_bme280test ");

    bool status;
      
     // default settings
    // (you can also pass in a Wire library object like &Wire2)
    status = bme.begin();  
    if (!status) {
        Serial.println("Could not find a valid BME280 sensor, check wiring!");
        while (1);
    }
    
    Serial.println("-- Default Test --");
    delayTime = 5000;

    Serial.println();
}

void loop() { 
    printValues();
    delay(delayTime);
}

void printValues() {
    Serial.print("Temperature = ");
    Serial.print(bme.readTemperature());
    Serial.println(" *C");
    Serial.println(  );
    int f;
    f = (bme.readTemperature()*1.8)+32;
    Serial.print(f);
    Serial.println(" *F");
    Serial.println(  );

    Serial.print("Pressure = ");

    Serial.print(bme.readPressure() / 100.0F);
    Serial.println(" hPa");
    Serial.println(" ");

    Serial.print("Approx. Altitude = ");
    Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA));
    Serial.println(" m");
    Serial.println(" ");

    Serial.print("Humidity = ");
    Serial.print(bme.readHumidity());
    Serial.println(" %");

    Serial.println();
}
*/

post the full error message. (copy / paste from the console)

For one thing you have the loop() function commented out. If it compiles on one machine but not the other, it is either the board setting or a require library is no installed. No way to help with those unless you post the error message.

`
My error, I had been commenting out various lines of code trying to find the problem.

/***************************************************************************
This is a library for the BME280 humidity, temperature & pressure sensor

Designed specifically to work with the Adafruit BME280 Breakout
----> http://www.adafruit.com/products/2650

These sensors use I2C or SPI to communicate, 2 or 4 pins are required
to interface. The device's I2C address is either 0x76 or 0x77.

Adafruit invests time and resources providing this open source code,
please support Adafruit andopen-source hardware by purchasing products
from Adafruit!

Written by Limor Fried & Kevin Townsend for Adafruit Industries.
BSD license, all text above must be included in any redistribution
***************************************************************************/

#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10

#define SEALEVELPRESSURE_HPA (1013.25)

Adafruit_BME280 bme; // I2C
//Adafruit_BME280 bme(BME_CS); // hardware SPI
//Adafruit_BME280 bme(BME_CS, BME_MOSI, BME_MISO, BME_SCK); // software SPI

unsigned long delayTime;

void setup() {

Serial.begin(9600);
Serial.println(F("BME280 test"));
Serial.println(" sketch_sep06_2021_bme280test ");

bool status;



// default settings
// (you can also pass in a Wire library object like &Wire2)
status = bme.begin();  
if (!status) {
    Serial.println("Could not find a valid BME280 sensor, check wiring!");
    while (1);
}

Serial.println("-- Default Test --");
delayTime = 5000;

Serial.println();

}

void loop() {
printValues();
delay(delayTime);
}

void printValues() {
Serial.print("Temperature = ");
Serial.print(bme.readTemperature());
Serial.println(" *C");
Serial.println( );
int f;
f = (bme.readTemperature()*1.8)+32;
Serial.print(f);
Serial.println(" *F");
Serial.println( );

Serial.print("Pressure = ");

Serial.print(bme.readPressure() / 100.0F);
Serial.println(" hPa");
Serial.println(" ");

Serial.print("Approx. Altitude = ");
Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA));
Serial.println(" m");
Serial.println(" ");

Serial.print("Humidity = ");
Serial.print(bme.readHumidity());
Serial.println(" %");

Serial.println();

}
``
type or paste code here

Here is the full error message:
Arduino: 1.8.16 (Windows 10), Board: "Arduino Uno"

C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware -hardware C:\Users\Duane\AppData\Local\Arduino15\packages -tools C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\tools-builder -tools C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -tools C:\Users\Duane\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\libraries -libraries C:\Users\Duane\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10816 -build-path C:\Users\Duane\AppData\Local\Temp\arduino_build_779221 -warnings=default -build-cache C:\Users\Duane\AppData\Local\Temp\arduino_cache_26255 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino

C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\arduino-builder -compile -logger=machine -hardware C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware -hardware C:\Users\Duane\AppData\Local\Arduino15\packages -tools C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\tools-builder -tools C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -tools C:\Users\Duane\AppData\Local\Arduino15\packages -built-in-libraries C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\libraries -libraries C:\Users\Duane\Documents\Arduino\libraries -fqbn=arduino:avr:uno -vid-pid=2341_0043 -ide-version=10816 -build-path C:\Users\Duane\AppData\Local\Temp\arduino_build_779221 -warnings=default -build-cache C:\Users\Duane\AppData\Local\Temp\arduino_cache_26255 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Duane\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -verbose C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino

Using board 'uno' from platform in folder: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

Alternatives for Wire.h: [Wire@1.0 Wire]

ResolveLibrary(Wire.h)

-> candidates: [Wire@1.0 Wire]

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

Alternatives for SPI.h: [SPI@1.0 SPI]

ResolveLibrary(SPI.h)

-> candidates: [SPI@1.0 SPI]

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

Alternatives for Adafruit_Sensor.h: [Adafruit_Sensor Adafruit_Unified_Sensor@1.1.4]

ResolveLibrary(Adafruit_Sensor.h)

-> candidates: [Adafruit_Sensor Adafruit_Unified_Sensor@1.1.4]

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

Alternatives for Adafruit_BME280.h: [Adafruit_BME280_Library@2.2.1]

ResolveLibrary(Adafruit_BME280.h)

-> candidates: [Adafruit_BME280_Library@2.2.1]

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

Alternatives for Adafruit_I2CDevice.h: [Adafruit_BusIO@1.9.1]

ResolveLibrary(Adafruit_I2CDevice.h)

-> candidates: [Adafruit_BusIO@1.9.1]

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src\Wire.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src\utility\twi.c" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src\SPI.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor\Adafruit_Sensor.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library\Adafruit_BME280.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_BusIO_Register.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_I2CDevice.cpp" -o nul

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO\Adafruit_SPIDevice.cpp" -o nul

Generating function prototypes...

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\preproc\ctags_target_for_gcc_minus_e.cpp"

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\preproc\ctags_target_for_gcc_minus_e.cpp"

Compiling sketch...

"C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10816 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\variants\standard" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire\src" "-IC:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI\src" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library" "-IC:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO" "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp" -o "C:\Users\Duane\AppData\Local\Temp\arduino_build_779221\sketch\sketch_sep06_2021_bme280test.ino.cpp.o"

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:21:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library/Adafruit_BME280.h:116:8: error: conflicting return type specified for 'virtual bool Adafruit_BME280_Temp::getEvent(sensors_event_t*)'

bool getEvent(sensors_event_t *);

    ^~~~~~~~

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:20:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor/Adafruit_Sensor.h:146:16: error: overriding 'virtual void Adafruit_Sensor::getEvent(sensors_event_t*)'

virtual void getEvent(sensors_event_t*);

            ^~~~~~~~

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:21:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library/Adafruit_BME280.h:130:8: error: conflicting return type specified for 'virtual bool Adafruit_BME280_Pressure::getEvent(sensors_event_t*)'

bool getEvent(sensors_event_t *);

    ^~~~~~~~

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:20:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor/Adafruit_Sensor.h:146:16: error: overriding 'virtual void Adafruit_Sensor::getEvent(sensors_event_t*)'

virtual void getEvent(sensors_event_t*);

            ^~~~~~~~

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:21:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library/Adafruit_BME280.h:144:8: error: conflicting return type specified for 'virtual bool Adafruit_BME280_Humidity::getEvent(sensors_event_t*)'

bool getEvent(sensors_event_t *);

    ^~~~~~~~

In file included from C:\Users\Duane\Documents\Arduino\sketchbook\sketchbook_2021\2021_Temp&Hum\sketch_sep06_2021_bme280test\sketch_sep06_2021_bme280test.ino:20:0:

C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor/Adafruit_Sensor.h:146:16: error: overriding 'virtual void Adafruit_Sensor::getEvent(sensors_event_t*)'

virtual void getEvent(sensors_event_t*);

            ^~~~~~~~

Multiple libraries were found for "Adafruit_Sensor.h"

Used: C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor

Not used: C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Unified_Sensor

Multiple libraries were found for "Wire.h"

Used: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire

Not used: C:\Users\Duane\Documents\Arduino\libraries\Wire

Multiple libraries were found for "SPI.h"

Used: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI

Not used: C:\Users\Duane\Documents\Arduino\libraries\SPI

Using library Wire at version 1.0 in folder: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\Wire

Using library SPI at version 1.0 in folder: C:\Users\Duane\Desktop\Ard-1.8.13\ARD-1.8.16\Arduino\hardware\arduino\avr\libraries\SPI

Using library Adafruit_Sensor in folder: C:\Users\Duane\Documents\Arduino\libraries\Adafruit_Sensor (legacy)

Using library Adafruit_BME280_Library at version 2.2.1 in folder: C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BME280_Library

Using library Adafruit_BusIO at version 1.9.1 in folder: C:\Users\Duane\Documents\Arduino\libraries\Adafruit_BusIO

exit status 1

Error compiling for board Arduino Uno.

please learn how to post code and long text using code tags... see How to get the best out of this forum (and modify your post accordingly).

Seems the compiler is unhappy about multiple libraries.

I would recommend you delete (move) all the custom libraries out of the way and reinstall only 1 copy of each of the ones you need for just those 2 using the library manager

#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>

Ok, I'll give it a try.

Thanks.

One library has a function that doesn't returns a value but another library is trying to make it return a value. Sounds like a version mismatch between some of the Adafruit libraries.

Go to Tools->Manage Libraries... and select "Type Updatable". Then update each one until there are no more updatable libraries.