From 1d4e24fa0e602f6c352cd968b6eb962894f286f4 Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 14 Nov 2019 19:57:02 +0100 Subject: [PATCH] Added some comments --- src/main.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f28695e..69413e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -153,17 +153,26 @@ void loop() if (millis() - timestamp > 1000) { timestamp = millis(); + // Read brightness lux = lightMeter.readLightLevel(); sensors_event_t event; + + // Read temperature dht.temperature().getEvent(&event); temperature = event.temperature; - // Read temperature as Fahrenheit (isFahrenheit = true) + + // Read humidity dht.humidity().getEvent(&event); humidity = event.relative_humidity; + // Read soil soil = readSoil(); + + // Read salt salt = readSalt(); + + // Read battery bat = readBattery(); Serial.printf("DHTT:%.2f H:%.2f Lux:%.2f Soil:%u Salt:%u Bat:%.2f\n",