electricimp / reference

Electric Imp Reference Code
MIT License
94 stars 65 forks source link

DHT22 accuracy #37

Closed ArthurGuy closed 9 years ago

ArthurGuy commented 9 years ago

Hi, I have just replaced two sensors from a home made arduino setup to electric imps, this is basically your DHT22 example. The problem is the temperature readings are now about 3 or 4 degrees higher than they were before.

Has the code been verified or could some kind of inaccuracy be present in the system?

ArthurGuy commented 9 years ago

I have checked the temperature alongside a known reading and they are definitely 3.5 to 4.5 degrees out. I am seeing this across two devices and two imps so I don't think it's a hardware problem.

cat-haines commented 9 years ago

It doesn't look like we have any DHT22's kicking around to test with, but we'll take a look when we get some in stock.

In the meantime, if you find what's wrong with the code, feel free to submit a PR :)

ArthurGuy commented 9 years ago

After looking at the datasheet and the way another library implemented the code I couldn't find anything wrong, I think I just have a bad batch of sensors :disappointed: