daily standup, bram documentation

This commit is contained in:
Bram Barbieri
2024-03-12 11:06:54 +01:00
parent fd260d9c56
commit 57a556ab6c
2 changed files with 12 additions and 2 deletions

View File

@@ -111,6 +111,7 @@ the code used looks like this:
DHT dht(DHTPIN, DHTTYPE);
void setup() {
//the
Serial.begin(9600);
Serial.println(F("DHTxx test!"));
dht.begin();
@@ -119,8 +120,8 @@ dht.begin();
void loop() {
delay(2000);
float h = dht.readHumidity();
delay(2000);
float h = dht.readHumidity();
float t = dht.readTemperature();
float f = dht.readTemperature(true);
if (isnan(h) || isnan(t) || isnan(f)) {
@@ -131,6 +132,8 @@ void loop() {
}
float hif = dht.computeHeatIndex(f, h);
float hic = dht.computeHeatIndex(t, h, false);
//all serial.ptint's send stuff to the serial board to showcase.
Serial.print(F("Humidity: "));
Serial.print(h);
Serial.print(F("% Temperature: "));