diff --git a/Adafruit_BME280.cpp b/Adafruit_BME280.cpp index f662916..4f9cd22 100644 --- a/Adafruit_BME280.cpp +++ b/Adafruit_BME280.cpp @@ -63,8 +63,11 @@ bool Adafruit_BME280::begin(uint8_t a) { return false; readCoefficients(); - write8(BME280_REGISTER_CONTROLHUMID, 0x03); // Set before CONTROL (DS 5.4.3) - write8(BME280_REGISTER_CONTROL, 0x3F); + + //Set before CONTROL_meas (DS 5.4.3) + write8(BME280_REGISTER_CONTROLHUMID, 0x05); //16x oversampling + + write8(BME280_REGISTER_CONTROL, 0xB7); // 16x ovesampling, normal mode return true; }