start indicator lampjes toevoegen
This commit is contained in:
@@ -22,7 +22,7 @@ void loop() {
|
|||||||
int Temparatuur = TLV.readTemperature();
|
int Temparatuur = TLV.readTemperature();
|
||||||
int Lichtsterkte = analogRead(LDR);
|
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.println("----------");
|
||||||
|
|
||||||
Serial.print("Temparatuur celcius: ");
|
Serial.print("Temparatuur celcius: ");
|
||||||
@@ -34,7 +34,16 @@ void loop() {
|
|||||||
Serial.print("LDR reading: ");
|
Serial.print("LDR reading: ");
|
||||||
Serial.println(Lichtsterkte);
|
Serial.println(Lichtsterkte);
|
||||||
|
|
||||||
|
if temp = >25{
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
else{
|
||||||
|
digitalWrite(13, LOW);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//wacht 2 seconden voordat er een nieuwe waarneming word gestuurd
|
||||||
delay(2000);
|
delay(2000);
|
||||||
}
|
}
|
Reference in New Issue
Block a user