Made the lower threshold a bit higher, so it turns off more quickly
Skip line if there is an error
Merge branch 'master' of ssh://supermind.nl:22/shofanduino
Clamp humidity values. Make envelope_min halflife shorter
Added version that works for DHT11 sensor

I tried to make the code so it can be made for DHT22 again as well.
If one of the values is incorrect, get a new line instead of skipping that one key/value pair
Use constants, use median filter

Update the min/max envelope immediately, instead of going half the step. Going half was to mitigate the salt/pepper noise, but half can still be a huge step. Instead, solve it by a median filter (see RunningMedian library).

Hopefully 3 values should be good enough:according to my data the value only goes up by half the difference (100 - current value) some times, never 3/4. This means that I haven't observed salt/pepper noise for 2 consecutive values. Of course this can still happen... If it does, this value (3) should be increased to 5.
Merge branch 'master' of ssh://supermind.nl:22/shofanduino
Tweak variables to improve robustness and response time

We now take the median of 5 samples, meaning that salt and pepper
noise has to occur 3 out of 5 times to have an effect.

Also, the highRatio is now set to 1/8th instead of 1/6th to make
the fan turn on quicker.