From 5b27974d5a4e8146f382479bc5c40273f5a69137 Mon Sep 17 00:00:00 2001 From: Yannick van Etten Date: Thu, 31 Oct 2024 15:27:17 +0100 Subject: [PATCH] Added comments --- src/C++/Driver/src/Sensors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/C++/Driver/src/Sensors.cpp b/src/C++/Driver/src/Sensors.cpp index a79f45c..3fc6981 100644 --- a/src/C++/Driver/src/Sensors.cpp +++ b/src/C++/Driver/src/Sensors.cpp @@ -1,5 +1,5 @@ #include - +// define pins and type of DHT sensor #define DHTPIN 4 #define DHTTYPE DHT11 #define MQ5_PIN 2 @@ -19,7 +19,7 @@ void loop() { float t = dht.readTemperature(); int mq5Value = analogRead(MQ5_PIN); - + // if sensor isn't connected properly display error message if (isnan(h) || isnan(t)) { Serial.println("Fout bij het lezen van de sensor!"); return;