if humidity is lower than 40% then turn a led and with temperature the same thing like if higher than 23 C then turn another led
read_dht11(); if dht11.humidity < 40% turn on a led; else turn off the led; if hdt11.temperature > 23 turn on another led; else turn off the led;
for (i=0; i<5; i++) dht_dat = read_dht_dat();
I wanna turn the servo on for 20 secs when humidity is lower than 40%. Anyone?
You don't "turn on a servo". Please describe exactly what you mean by that. While you are thinking about it, look at the blink without delay example.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16