from Adafruit_BME280 import *


sensor = BME280(t_mode=BME280_OSAMPLE_8, p_mode=BME280_OSAMPLE_8, h_mode=BME280_OSAMPLE_8)



while True:
    degrees = sensor.read_temperature()
    pascals = sensor.read_pressure()
    hectopascals = pascals / 100
    humidity = sensor.read_humidity()
    print('Temp      = {0:0.3f} deg C'.format(degrees))
    print('Pressure  = {0:0.2f} hPa'.format(hectopascals))
    print('Humidity  = {0:0.2f} %'.format(humidity))
