๐Ÿ“ฃ๐Ÿ“ช ๐Ÿšš Adafruit will not be shipping USPS orders Monday October 14, 2019 ๐Ÿ—“. Expedited USPS orders placed after 11am ET ๐Ÿ•š Friday October 11 will go out Tuesday October 15 ๐Ÿ“ฃ๐Ÿ“ช๐Ÿšš
0

BME humidity wrong
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BME humidity wrong

by chabekost on Thu Aug 22, 2019 7:44 pm

I have now replaced 2 BME280 breakout boards. One failed with a bad temp reading after a year. I ordered 2 more, each has failed with bad, almost consistant humidity readings.
The code is the BME example to rule out my coding. Using soft spi, all 4 data/clk wires and + 5v and gnd. One failed within 24 hours, the replacement in about 4 hours (I was watching). The temp and pressure are correct.

Tried several other processors. No change.

Found numerous posts regarding bad humidity readings. Note that the sensor is inside, open to air, not in a box..

Please advise, thanks.

chabekost
 
Posts: 2
Joined: Sat Feb 13, 2016 5:49 pm

Re: BME humidity wrong

by kflmiami420 on Thu Aug 22, 2019 8:34 pm

Can you post your code ?

kflmiami420
 
Posts: 103
Joined: Tue Aug 21, 2018 9:43 pm

Re: BME humidity wrong

by kflmiami420 on Thu Aug 22, 2019 8:36 pm

I mainly use my bme280 for its pressure reading. for humidity I would try the dht22 sensor or with ic2 the sht31-d sensor

kflmiami420
 
Posts: 103
Joined: Tue Aug 21, 2018 9:43 pm

Re: BME humidity wrong

by chabekost on Thu Aug 22, 2019 9:25 pm

Here is the code:


/***************************************************************************
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.

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 23
#define BME_MISO 25
#define BME_MOSI 27
#define BME_CS 29

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

void setup() {
Serial.begin(9600);
Serial.println(F("BME280 test"));

if (!bme.begin()) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
while (1);
}
}

void loop() {
delay(1700);


Serial.print("Temperature = ");
Serial.print(( 1.8 * bme.readTemperature()) + 32);
Serial.print(" *F, ");
// delay(100);
Serial.print("Pressure = ");
Serial.print((bme.readPressure() / 3386.39) + 3.5254);
Serial.print(" in, ");
// delay(100);
Serial.print("Humidity = ");
Serial.print(bme.readHumidity());
Serial.println(" %");

// Serial.println();

}

chabekost
 
Posts: 2
Joined: Sat Feb 13, 2016 5:49 pm

Re: BME humidity wrong

by janc1 on Fri Sep 13, 2019 2:37 am

I think that BM{E/P}xxx are not good for outside used. I mean in pure air.
see my comment here

janc1
 
Posts: 6
Joined: Sat Apr 15, 2017 4:01 am

Please be positive and constructive with your questions and comments.