import paho.mqtt.subscribe as subscribe
import time


def run():
    msg = subscribe.simple("raspib.bme680", hostname="localhost")
    print("%s %s" % (msg.topic, msg.payload))


if __name__ == '__main__':
    while True:
        run()
        time.sleep(1)

