diff --git a/arduino/humid-temp-test/testv1/testv1.ino b/arduino/humid-temp-test/testv1/testv1.ino new file mode 100644 index 0000000..2dcda37 --- /dev/null +++ b/arduino/humid-temp-test/testv1/testv1.ino @@ -0,0 +1,26 @@ +#include + +DHT11 dht11(18); + + +void setup() +{ + Serial.begin(9600); + +} + +void loop() +{ + float hoomid = dht11.readHumidity(); + float temp = dht11.readTemperature(); + + + Serial.print("temparatuur celcius: "); + Serial.println(temp); + + Serial.print("vochtigheid: "); + Serial.println(hoomid); + + delay(2000); + +} \ No newline at end of file diff --git a/arduino/licht-test/sketch_sep6a/sketch_sep6a.ino b/arduino/licht-test/sketch_sep6a/sketch_sep6a.ino index d7bbf84..238a253 100644 --- a/arduino/licht-test/sketch_sep6a/sketch_sep6a.ino +++ b/arduino/licht-test/sketch_sep6a/sketch_sep6a.ino @@ -5,10 +5,11 @@ * * Tutorial page: https://arduinogetstarted.com/tutorials/arduino-light-sensor */ -#define LDR 5 +#define LDR 12 void setup() { // initialize serial communication at 9600 bits per second: Serial.begin(9600); + delay(1000); } void loop() { @@ -17,4 +18,5 @@ void loop() { Serial.println("Analog reading: "); Serial.println(analogValue); // the raw analog reading + delay(1000); } \ No newline at end of file