don't like multiple lines, but I got the optimization that you make, look at master brnch, I have moved the sum&0xFF so for DHT11 works to