import bme280
from time import sleep
dgr = u'\xb0'
print('[Press CTRL + C to end the script!]')
try:
   while(True):
        temperature,pressure,humidity = bme280.readBME280All()
        print('Temperature = {}{}C'.format(temperature, dgr))
        print('Humidity    = {0:.2f} %'.format(humidity))
        print('Pressure    = {0:.2f} hPa\n'.format(pressure))
        sleep(2)

except KeyboardInterrupt:
       print('Script end!')

