# BME680 Breakout Board - Quality Calculation etc

**URL:** <https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434>\
**Category:** Support\
**Created:** [November 23, 2017, 5:21pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434 "2017-11-23T17:21:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 23, 2017, 5:21pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/1 "2017-11-23T17:21:01Z")

</div>

Hello

Hooked it up, and getting values back, was wondering if the air quality value you calculate in the [indoor-air-quality.py](http://indoor-air-quality.py) example equates to the bosch “indoor air quality” that ranges from 0 - 500 ?

OK, so question answered in another post, the example is not the bosch IAQ but between 0 and 100% but factors in humidity to that 100% rating.

So, reckon I will split that and just have a GAS sensor air quality and a humidity target reading.

Also you are heating to 320 for 150ms, when example in datasheet is 300 for 100ms, any reason for doing that?

The temperature reads high (22.5c when ambient about 19.5c) and humidity reads low (37.35 when about 45RH% ambient) which of course makes sense when there is a heater heating to 300c on the same little chip

Then again, always a question about which device is actually the accurate one.

The pressure value is accurate compared to a couple of bme280 chips.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 24, 2017, 8:37am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/2 "2017-11-24T08:37:11Z")

</div>

I reckon the bosch datasheet is missing a lot of information (i.e. gas response curves) that they have hidden in their proprietary BSEC software

using the [read-all.py](http://read-all.py) example

The sensors gas value/resistance varies depending on polling rate

at 60 seconds per reading max resistance 65000 after 5 hours  
at 10 seconds per reading max resistance 132000 after 10 mins  
at 5 seconds per reading max resistance 222569 after 10 mins

at 1 seconds per reading max resistance 222278 after 10 mins then is stable-ish at about 280000 after 20 mins

at 2 seconds per reading max resistance 233345 after 10 mins then is stable-ish at about 234000 after 20 mins

consequtive tests and air quality not changed that much, been running MQ137 and other analog gas sensors for several months already.

can someone else confirm this with another sensor.

---

<div class="post-metadata">

**Author:** ![sandyjmacdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/sandyjmacdonald/32/393_2.png) [@sandyjmacdonald](https://forums.pimoroni.com/u/sandyjmacdonald)\
**Post date:** [November 24, 2017, 10:10am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/3 "2017-11-24T10:10:31Z")

</div>

So, it sounds like once they’ve stabilised then it doesn’t make much difference? I’d guess this is related to how stable the temperature of the heating plate is, but that’s pure speculation.

It’s worth mentioning that Bosch have now made a binary of their BSEC software for the Pi available, so you might like to try that and compare results…

[https://www.bosch-sensortec.com/bst/products/all\_products/bsec](https://www.bosch-sensortec.com/bst/products/all_products/bsec)

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 24, 2017, 12:01pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/4 "2017-11-24T12:01:26Z")

</div>

Actually, that is my point, it makes a big difference, you cannot change the sampling period once you have baselined it at a fixed sampling period, and probbaly more sensitive to fluctuation at one end or the other of the periods length.

I had already tested the bosch C interface following this guide

[https://github.com/twartzek/bme680-raspberry](https://github.com/twartzek/bme680-raspberry)

and I can see the raw values are in same ballpark as your python library

using the BSEC library requires more knowledge of how to link to the static library they provide than I have. Where do you need to put what files?

I stuck all the header and c files in the examples directory and copied library for pi zero to /usr/lib

I am just getting shed loads of errors

gcc -Wall bsec\_iot\_example.c bsec\_integration.c -lalgobsec -o test

bsec\_integration.c: In function ‘bsec\_iot\_init’:  
bsec\_integration.c:161:27: warning: unused variable ‘bsec\_status’ [-Wunused-variable]  
bsec\_library\_return\_t bsec\_status = BSEC\_OK;  
^ ~~~~~~~~~~  
bsec\_integration.c: In function ‘bme680\_bsec\_trigger\_measurement’:  
bsec\_integration.c:237:12: warning: variable ‘bme680\_status’ set but not used [-Wunused-but-set-variable]  
int8\_t bme680\_status = BME680\_OK;  
^ ~~~~~~~~~~~~  
bsec\_integration.c: In function ‘bme680\_bsec\_read\_data’:  
bsec\_integration.c:297:12: warning: variable ‘bme680\_status’ set but not used [-Wunused-but-set-variable]  
int8\_t bme680\_status = BME680\_OK;  
^ ~~~~~~~~~~~~  
/usr/bin/ld: /usr/lib/gcc/armv6l-unknown-linux-gnueabihf/7.2.0/…/…/…/libalgobsec.a(bsec\_interface.o): relocation R\_ARM\_MOVW\_ABS\_NC against `a local symbol’ can not be used when making a shared object; recompile with -fPIC  
/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/7.2.0/…/…/…/libalgobsec.a: error adding symbols: Bad value  
collect2: error: ld returned 1 exit status

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 24, 2017, 12:32pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/5 "2017-11-24T12:32:25Z")

</div>

OK, after research (thanks stackexchange) and thinking those functions giving errors are math functions need to also link with math library this command will compile it

gcc -static -static-libgcc -static-libstdc++ bsec\_iot\_example.c bsec\_integration.c bme680.c -lalgobsec -lm -o test

however, got to write your own smbus/i2c comms routines for the example program. I may get round to looking at the ino to see how its done in wire library and then that needs converting to file based io.

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [November 24, 2017, 1:53pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/6 "2017-11-24T13:53:09Z")

</div>

You could borrow i2c read/write from here: [https://gist.github.com/gkluoe/a297f6bcf76e4466f1bfa6fd40038983](https://gist.github.com/gkluoe/a297f6bcf76e4466f1bfa6fd40038983)

The `-static-libgcc` and `-static-libstdc++` parts of your compile magic look odd to me. I’m no C guru, but it’s not typical to statically link these. That said- if it works, it works! You just end up with a slightly larger binary.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 24, 2017, 7:26pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/7 "2017-11-24T19:26:56Z")

</div>

may be one advantage of a pure static linked package, might run on a machine with different dynamic c/c++ libraries where they are incompatible in a use case… as long as such and such else pitfall does not exist…

my problem was not linking with math library. you are right, only need the -static directive

I see in the bsec example for arduino document they explain that temp is high and humidity low because of background heat, and that the bsec library does temperature compensation which adjusts the humidity reading, not got that working yet, but the i2c code already in the correct callback routine parameter order I was going to patch in is in the example at

[https://github.com/twartzek/bme680-raspberry](https://github.com/twartzek/bme680-raspberry)

wondering if calibration data can be adjusted at your python library level to set/compensate the temperature that the humidity is calculated at and return correct temp/humidity

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [November 24, 2017, 9:11pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/8 "2017-11-24T21:11:35Z")

</div>

We could probably reverse-engineer their compensation formula, at least to some degree, by shoring up the i2c functions to return fake data that runs the whole gamut of possible humidity/temperature readings, graphing the resulting humidity (versus the humidity we fed in) and seeing how it correlates to the temperature. I’m not sure exactly how they’d feel about this- it might be easier just to ask nicely if they’ll give us some pointers on designing our own compensations.

The issue with the heater sounds logical, too, I would fully expect polling frequency to have a small impact on resistivity, since the part would - in theory - stay warm for longer, and bind to more VOC (I’m not really sure how the sensor layer actually works/chemically interacts with the compounds it detects). That said I wouldn’t expect the tiny heating element to have much thermal inertia, so I’m surprised it has the impact that it does. Are other factors are play?

It might be worth us putting together a tutorial, or a GitHub repository, teaching more advanced users how to use the C libraries and binary blobs. It would be less “darkside” than reverse engineering.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 24, 2017, 10:24pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/9 "2017-11-24T22:24:08Z")

</div>

the example showed a -5c temp compensation, which ties up with my observations, got a ds18b20 on another pi in proximity to your sensor mounted vertically on a zero and it reads about 5c lower. humidity about 5-10 points low compared to a hygrometer (that reads low/accurate) in proximity to your sensor.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 25, 2017, 10:21am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/10 "2017-11-25T10:21:51Z")

</div>

Looking at your python library, should be possible to add a temp\_compensation value in the **init** and then if anyone understands what the calc\_temperature which feeds in to calc\_humidity routines do then compensate the temperature in calc\_temperature which should then automatically correctly calculate the right humidity from the temperature feed forward.

OK so the temperature compensation is easy like I said above, just add an extra parameter to init

BUT the temperature compensation in the humidity calculation works the opposite way, (cooler = less humidity) and hardly makes any difference anyway. 5C cooler only affects humidity calculation by less than 1%

problem with shifting it a fixed percent is that percentage will vary across the temperature range. Ah well, Think I’ll just shift it a fixed percent. About +6% seems about right.

So may as well just adjust it in the logging code.

though hooking up an htu21d as well and maybe a bme280 and cross correlating some data should yield a formula.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 25, 2017, 1:47pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/11 "2017-11-25T13:47:07Z")

</div>

![testrig](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/b/ba969bd4f445643ab6e4caba3023b689456220ae.jpg)

I will leave this lot running for a while, some ds18b20 temp sensors, a bme280 and the raspberry with a bme680 see what happens.

I have noticed the gas resistance readings are very steppy

```
this example I blow some smoke at the sensors

2017-11-25,13:34:50,22.89,C,1006.87,hPa,34.74,%RH,222496,Ohms
2017-11-25,13:34:52,22.89,C,1006.89,hPa,34.75,%RH,223521,Ohms
2017-11-25,13:34:54,22.89,C,1006.89,hPa,34.76,%RH,223154,Ohms
2017-11-25,13:34:56,22.89,C,1006.89,hPa,34.76,%RH,216334,Ohms
2017-11-25,13:34:58,22.88,C,1006.91,hPa,34.86,%RH,146080,Ohms
2017-11-25,13:35:00,22.88,C,1006.91,hPa,34.97,%RH,141187,Ohms
2017-11-25,13:35:02,22.87,C,1006.88,hPa,35.07,%RH,136288,Ohms
2017-11-25,13:35:04,22.87,C,1006.89,hPa,35.22,%RH,131018,Ohms
2017-11-25,13:35:06,22.86,C,1006.90,hPa,35.36,%RH,125136,Ohms
2017-11-25,13:35:08,22.86,C,1006.88,hPa,35.53,%RH,120637,Ohms
2017-11-25,13:35:10,22.85,C,1006.89,hPa,35.69,%RH,116924,Ohms
2017-11-25,13:35:12,22.84,C,1006.89,hPa,35.80,%RH,115055,Ohms
2017-11-25,13:35:14,22.84,C,1006.87,hPa,35.87,%RH,114598,Ohms
2017-11-25,13:35:16,22.83,C,1006.87,hPa,35.88,%RH,115017,Ohms
2017-11-25,13:35:18,22.83,C,1006.89,hPa,35.86,%RH,115710,Ohms
2017-11-25,13:35:20,22.83,C,1006.91,hPa,35.84,%RH,117162,Ohms

when it clears it will massive switch from 140000 or so up to the 222000 scale again

2017-11-25,13:38:54,22.85,C,1006.94,hPa,35.04,%RH,148147,Ohms
2017-11-25,13:38:56,22.85,C,1006.93,hPa,35.03,%RH,148465,Ohms
2017-11-25,13:38:58,22.86,C,1006.93,hPa,35.02,%RH,148593,Ohms
2017-11-25,13:39:00,22.86,C,1006.93,hPa,35.00,%RH,148784,Ohms
2017-11-25,13:39:02,22.86,C,1006.93,hPa,35.00,%RH,213079,Ohms
2017-11-25,13:39:04,22.85,C,1006.93,hPa,35.00,%RH,148656,Ohms
2017-11-25,13:39:06,22.85,C,1006.93,hPa,35.00,%RH,213145,Ohms
2017-11-25,13:39:08,22.85,C,1006.94,hPa,35.01,%RH,149041,Ohms
2017-11-25,13:39:10,22.85,C,1006.93,hPa,35.03,%RH,148913,Ohms
2017-11-25,13:39:12,22.85,C,1006.94,hPa,35.04,%RH,148977,Ohms
2017-11-25,13:39:14,22.85,C,1006.94,hPa,35.05,%RH,148784,Ohms
2017-11-25,13:39:16,22.85,C,1006.94,hPa,35.07,%RH,213480,Ohms
2017-11-25,13:39:18,22.85,C,1006.95,hPa,35.07,%RH,213346,Ohms
2017-11-25,13:39:20,22.84,C,1006.95,hPa,35.06,%RH,213346,Ohms
2017-11-25,13:39:22,22.84,C,1006.96,hPa,35.04,%RH,213346,Ohms
```

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 26, 2017, 8:19pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/12 "2017-11-26T20:19:09Z")

</div>

yeah, I see what’s happening, it’s a good sensor! the datasheet does not explain how it works!

now, if pimoroni want to send me a couple more of them I might explain it LOL

The compensation is not linear, as surroundings get cooler the error gets less… not been able to test in hot surroundings due to utility corporation cartel so and so’s

as a hint… norsky (not great, no worse that met ofice?) xfce plugin link says 92% humidity outside, bme280 by an open window shielded from interior by a venetian blind says 72% (sounds about right) pimoroni bme680 board in very close proximity to chinois bme280 says 60%. (so a 12% rh offset would be quite close across the range I have observed, to what tolerance?)

amazing how a metre in altitude in a room (in cold weather) can be 2c difference eh! (actually that might be a 1C tolerance error and 1C actual difference)

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [November 29, 2017, 9:48pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/13 "2017-11-29T21:48:57Z")

</div>

could be a long burn in period, I think it may have improved somewhat.

nope - a red herring, it needs a big largely fixed offset for temp and humidity plus a bit of variable offset for ultra precision.

The gas sensor reading post library is banded, I think the bands it rises up through from start up are the five levels of air quality with a range within each… what centre point of each range is is not specified.

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [December 11, 2017, 9:05pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/14 "2017-12-11T21:05:36Z")

</div>

so there is another band on top that only is achieved outside, (never makes it inside) the 400-500 thousand range, the ranges are stepped to roughly double previous range with a variation (probably proportional to the step size) within that band of varying quality within that band I think.

I will do some processing on the data and attempt to estimate high-low for each band.

even outside air quality drops from 400-500k band to 200k band round here when house fires light up and traffic is heavy, busy road and old houses with real fires burning ship oil, primo columbian coke, plastic and lead painted fence posts by the smell of things… (so and so’s at cantrols shut down the quality of english coal…) probably in very attractive packaging at an attractive price eh!

guess what you want is external sensor that drive your indoor positive pressure air input filter that only ever fires up to max at good outside air quality levels…

of course can only really (being an upstanding citizen) run a positive air pressure system in a detached house, unless all connected houses are also in on the complete system…

or just open your windows to get a through draft when it is good and shut down when not… but observe when bad air appears to be being pumped in eh! (they know who they are… so help me I am going to eradicate them!)

got to block indent by 4 spaces on this forum???

'kers aint coders eh! and # makes a line double sized bold wtf??? python 4 indent and no block end… python awesome but flawed eh!

awesome but flawed eh! modern world eh!

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [December 11, 2017, 10:41pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/15 "2017-12-11T22:41:25Z")

</div>

```auto
#!/usr/bin/env python
# tweak pimoroni example to get some sensible readings
# Paul W. Rogers 2017

import bme680
import time
from datetime import datetime
sensor = bme680.BME680()

# These calibration data can safely be commented
# out, if desired.

print("Calibration data:")
for name in dir(sensor.calibration_data):

    if not name.startswith('_'):
        value = getattr(sensor.calibration_data, name)

        if isinstance(value, int):
            print("{}: {}".format(name, value))

# These oversampling settings can be tweaked to 
# change the balance between accuracy and noise in
# the data.

sensor.set_humidity_oversample(bme680.OS_8X)
sensor.set_pressure_oversample(bme680.OS_8X)
sensor.set_temperature_oversample(bme680.OS_8X)
sensor.set_filter(bme680.FILTER_SIZE_3)
sensor.set_gas_status(bme680.ENABLE_GAS_MEAS)

print("\n\nInitial reading:")
for name in dir(sensor.data):
    value = getattr(sensor.data, name)

    if not name.startswith('_'):
        print("{}: {}".format(name, value))

time.sleep(5)

sensor.set_gas_heater_temperature(320)
sensor.set_gas_heater_duration(150)
sensor.select_gas_heater_profile(0)

# Up to 10 heater profiles can be configured, each
# with their own temperature and duration.
# sensor.set_gas_heater_profile(200, 150, nb_profile=1)
# sensor.select_gas_heater_profile(1)

avgtot = 0.0
avgcount = 0

fixedrate = 3
avgrate = 10

# speed is fixedrate * avgrate seconds per average no long-term smoothing so catch peaks more?
# have to keep fixedrate-is-what? up on this sensor or it retrigs calibration
# 3s per reading works

logf = open('BME680.log','a') 

print("\n\nPolling:")
try:
    while True:
        if sensor.get_sensor_data():

            output = datetime.now().strftime('%Y-%m-%d,%H:%M:%S,')+"{0:.2f},C,{1:.2f},hPa,{2:.2f},%RH" \
                    .format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity)
            if sensor.data.heat_stable:
                avgcount+=1
                avgtot += sensor.data.gas_resistance
                if avgcount==avgrate :
                  output += ",{:.0f},Ohms".format(avgtot/avgrate)
                  print(output)
                  avgtot=0

            else:
                output += ',0,Ohms'
                print(output)
            
            if avgcount == avgrate :
              avgcount = 0
              output += '\n'
              logf.write(output)
              logf.flush()

        time.sleep(fixedrate)

except KeyboardInterrupt:
    pass

finally:
  logf.close()

```

---

<div class="post-metadata">

**Author:** ![Xerxel](https://avatars.discourse-cdn.com/v4/letter/x/bbce88/32.png) [@Xerxel](https://forums.pimoroni.com/u/Xerxel)\
**Post date:** [January 25, 2018, 12:34am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/16 "2018-01-25T00:34:50Z")

</div>

Great post. I have uped my sampling to 8x and taking reads every 3 seconds to try to replicate what you did.  
At the moment if I read the gas reading only it climbs higher then stabilises but when the python script then also starts reading the temp pressure and humidity, the gas reading always drops suddenly. Hopefully your settings will fix this!

---

<div class="post-metadata">

**Author:** ![Xerxel](https://avatars.discourse-cdn.com/v4/letter/x/bbce88/32.png) [@Xerxel](https://forums.pimoroni.com/u/Xerxel)\
**Post date:** [January 25, 2018, 12:38am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/17 "2018-01-25T00:38:38Z")

</div>

![AirQuality03](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/5/57a6065436ad9a8393c4f673295e4107aa32b91f.gif)  
You can see the sudden drops on the screenshot. I’ll post a screenshot of the impact of your suggested changes tomorrow and we can compare.

---

<div class="post-metadata">

**Author:** ![Xerxel](https://avatars.discourse-cdn.com/v4/letter/x/bbce88/32.png) [@Xerxel](https://forums.pimoroni.com/u/Xerxel)\
**Post date:** [January 25, 2018, 12:55am UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/18 "2018-01-25T00:55:44Z")

</div>

![AirQuality03b](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/f/fda9a03bd8cc548add1c9445de2104fe518e226a.gif)  
Skypi,  
Hmmm - your settings seemed to have improved things. The drop is not so large and the average gas reading has gone down, temp has gone down and humidity up with Air Quality hovering over 80%. The arrows show where the new settings kicked in.  
Thanks!

---

<div class="post-metadata">

**Author:** ![skypi](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@skypi](https://forums.pimoroni.com/u/skypi)\
**Post date:** [January 25, 2018, 12:22pm UTC](https://forums.pimoroni.com/t/bme680-breakout-board-quality-calculation-etc/6434/19 "2018-01-25T12:22:35Z")

</div>

there is another post where I have graphed the comparative results with an analog gas sensor mq135 and mq7. Main improvement regarding temp/humidity wrong readings is not running it vertically mounted on the pi, but make a little ventilated container so you can mount it a cables length.

and then observing the large step jumps the bands of which I have estimated in this post

> [@BME680 Observed gas 'ohms' readings](https://forums.pimoroni.com/t/bme680-observed-gas-ohms-readings/6608):
>
> Just to pass on what I observed, at a guess these banded ranges correspond to the air quality labels in the datasheet with one extra the readings are banded, though the values I have are only the observed range for each band might be bit more bit less but jumps to somewhere in next band around those points. so I doubt these are ‘ohms’ readings, the tests were with standard pimoroni library and the read-all example modified to log in a csv friendly format. based on about 30mb of readings over …

> [@BME680 Observed gas 'ohms' readings](https://forums.pimoroni.com/t/bme680-observed-gas-ohms-readings/6608/13):
>
> cross correlating gas sensor against an MQ135 and an MQ7 on an arduino hooked up to raspberry which both cross correlate (same response curves different names) the stepping drops that I mention fits with the plot of both analog gas sensors… so the stepping ranges I mention seem correct! but bme680 definitely different gas responses (says not co2 sensitive) some dips/rises where no correlation, wondering if the bosch know that at different heater profiles it responds to different gasses in a kno…
