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.