//github.com/adafruit/Adafruit-BMP085-Library/tree/master =скетч(BMP085test.ino),looksГУТ
//github.com/adafruit/Adafruit-BMP085-Library/blob/master/examples/BMP085test/BMP085test.ino
// атм.Pressure,T'C bme280=bmp280+Humid I2c
//BMP280 newer BMP180: greater resolution (of 0.16 Pa)
#include <Wire.h>
#include <Adafruit_BMP085.h>
/* BMP085 Barometric Pressure & Temp Sensor adafruit.com/products/391
by Limor Fried/Ladyada for Adafruit Industries, BSD license */
// VCC of the BMP085 sensor to 3.3V (NOT 5.0V!). SCL -> A5, SDA -> A4
// reset pin XCLR not used. EOC pin not used
Adafruit_BMP085 bmp;
void setup() { Serial.begin(9600);
/* if (!bmp.begin()) {
Serial.println("Could not find a valid BMP085 sensor, check wiring!");
while (1) {} } */ }
void loop() {
Serial.print("Pressure = ");
Serial.print(bmp.readPressure()); Serial.println(" Pa");
Serial.print("Temperature = ");
Serial.print(bmp.readTemperature()); Serial.println(" *C");
// Calculate altitude assuming 'standard' barometric
// pressure of 1013.25 millibar = 101325 Pascal
Serial.print("Altitude = ");
Serial.print(bmp.readAltitude()); Serial.println(" meters");
Serial.print("Pressure at sealevel (calculated) = ");
Serial.print(bmp.readSealevelPressure()); Serial.println(" Pa");
// you can get a more precise measurement of altitude
// if you know the current sea level pressure which will
// vary with weather and such. If it is 1015 millibars
// that is equal to 101500 Pascals.
Serial.print("Real altitude = ");
Serial.print(bmp.readAltitude(120000)); Serial.println(" meters");
Serial.println();
delay(5000);
}