Barometric pressure sensor/altimeter/temperature sensor I2C/SPI - BME280
Product information:
The BME280 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 BME280 has an I2C bus and can therefore communicate directly with many microprocessors (including of course the Arduino).
With the temperature sensor that is also built in, you almost have a complete weather station!
Supply voltage VCC: 1.71 - 5V
Precision in low-power mode: 0.06hPa (0.5m)
Precision in high linear mode: 0.03hPa (0.25m)
Working temperature: -40°C to +85°C, +/- 1°C accuracy.
Dimensions: 11.7mm x 15.6mm x 2.5mm
Connect:
BME280 ----> Arduino
---------------------------
VCC ----> 3.3/5V
GND ----> GND
SDA ----> SDA
SCL ----> SCL
Install the Adafruit BME280 library in the library manager.
Learn more about connecting I2C devices.