Reference
Last revision 2025/12/17
Library
- Download and install the BME680 Library. How to install the library?
- This sample code is based on IIC connector. Please check file: DFRobot_BME680_SPI.ino for sample code for SPI connector in the library file. Because SPI sample code realizes the same function, it will not be shown at here.
Communication Protocol Description
This sensor supports I2C and SPI communication protocols. The default I2C address is 0x77.
API Description
- Create a bme object and write to IIC address.
DFRobot_BME680_I2C bme(0x77);
- Initialize BME680 and library
begin();
- Start data converting
startConvert();
- Read converted data
update();
- support reading the IAQ
supportIAQ();
- Start data converting with IAQ
iaqUpdate();
- Query whether the IAQ conversion is complete. If Completed return 1, else return 0.
isIAQReady();
- Get temperature data, unit of ℃, precision of 0.01℃
readTemperature();
- Get atmosphere pressure, unit of pa, precision of 0.01pa
readPressure();
- Get humidity, unit of %rh, precision of 0.01%rh
readHumidity();
- Get resistance value of gas-resistance, unit of ohm, precision of 0.01ohm
readGasResistance();
- Get altitude, unit of m, precision of 0.01m
readAltitude();
- Get sea level atmosphere pressure reference value and send altitude data
readSeaLevel(float altitude);
- Get calibrated altitude value and send atmosphere pressure reference value
readCalibratedAltitude(float seaLevel);
IAQ (Indoor Air Quality) Sheet

More Documents
Was this article helpful?
