updated light sensor script and added functioning temprature and humidity sensor scripts*

This commit is contained in:
Sam
2023-09-06 22:46:27 +02:00
parent f366f9f9c0
commit 24ce77933b
2 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
#include <DHT11.h>
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);
}