diff options
Diffstat (limited to 'fruitfly.py')
-rw-r--r-- | fruitfly.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fruitfly.py b/fruitfly.py index bf4a534..53d20e2 100644 --- a/fruitfly.py +++ b/fruitfly.py @@ -16,11 +16,10 @@ print("connecting to broker " + broker) client.connect(broker) client.loop_start() -while True { +while True: humidity, temperature = Adafruit_DHT.read_retry(sensor_type, sensor_pin) client.publish(client_id+"/temperature", temperature) client.publish(client_id+"/humidity", humidity) time.sleep(2) -} |