diff --git a/arduino/sensor combo/combi/combi.ino b/arduino/sensor combo/combi/combi.ino index 6b9278a..ce62d31 100644 --- a/arduino/sensor combo/combi/combi.ino +++ b/arduino/sensor combo/combi/combi.ino @@ -22,7 +22,7 @@ void loop() { int Temparatuur = TLV.readTemperature(); int Lichtsterkte = analogRead(LDR); - //hier worden alle variabelen in de serial monitor uitgespuugt + //hier worden alle variabelen in de serial monitor uitgespuugt, en websites kunnen ook de Serial.print lezen. Serial.println("----------"); Serial.print("Temparatuur celcius: "); @@ -34,7 +34,16 @@ void loop() { Serial.print("LDR reading: "); Serial.println(Lichtsterkte); + if temp = >25{ + } + + else{ + digitalWrite(13, LOW); + + } + + //wacht 2 seconden voordat er een nieuwe waarneming word gestuurd delay(2000); } \ No newline at end of file