Added comments

This commit is contained in:
Yannick van Etten
2024-10-31 15:27:17 +01:00
parent f4ce50db18
commit 5b27974d5a

View File

@@ -1,5 +1,5 @@
#include <DHT.h>
// 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;