Hi all.
I have just spent 2 days getting my new I Mac desktop to see my UNO R3 board, my new pc can now download to my UNO.
I am training to set up a new BME 280, pressure, temperature and humidity sensor. The problem I have now is I cannot see any data in the Serial Monitor page, while using a test sketch, I sometimes get "BME TEST" but that's all, as I am new to I Mac I thought I would see if anyone can see if I am doing something silly ?This is the sketch I have been using -
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#define SEALEVELPRESSURE_HPA (1013.25)
Adafruit_BME280 bme;
void setup() {
Serial.begin(9600);
if (!bme.begin(0x76)) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
while (1);
}
}
void loop() {
Serial.print("Temperature = ");
Serial.print(bme.readTemperature());
Serial.println("*C");
Serial.print("Pressure = ");
Serial.print(bme.readPressure() / 100.0F);
Serial.println("hPa");
Serial.print("Approx. Altitude = ");
Serial.print(bme.readAltitude(SEALEVELPRESSURE_HPA));
Serial.println("m");
Serial.print("Humidity = ");
Serial.print(bme.readHumidity());
Serial.println("%");
Serial.println();
delay(1000);
}