Barometric presssure sensor/ altimeter/ temperature I2C/SPI - BME280
Product information:
The BMP280 is a very energy efficient and very small barometric pressure sensor with high sensitivity.
Because the pressure is related to the height at which you are located, you can also calculate the height at which your circuit is located.
The sensor has a measuring range of 300-1100hPa (9000 meters above sea level to 500m below sea level).
The BMP280 has an I2C bus and can therefore communicate directly with many microprocessors (including the Arduino of course).
With the temperature sensor that is also built in, you almost have a complete weather station!
Supply voltage VCC: 1.71 - 3.6V (NOTE! Do not apply 5V, use the 3.3V connection of your Arduino!)
Precision in low-power mode: 0.06hPa (0.5m)
Precision in high linear mode: 0.03hPa (0.25m)
Working temperature: -40 to +85C, +/- 2C accuracy.
Dimensions: 11.7mm x 15.6mm x 2.5mm
Connect:
BMP280 ----> Arduino
---------------------------
VCC ----> 3.3V
GND ----> GND
SDA ----> SDA
SCL ----> SCL
SDO ----> GND (slave address 0x76)
CSB ----> 3.3V (HIGH for I2C)
Install the Adafruit BMP280 library in the library manager.
Set the I2C address as follows (eg. in bmp280test): if (!bme.begin(0x76)) {
Learn more about connecting I2C devices.