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",