Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • That seems to be a bit of a silly way of combining bytes to form a 16 bit value if you ask me... Commented Oct 30, 2021 at 17:18
  • I've got the exactly same code in another library. I'll try to put my DHT22 into the freezer tomorrow and see what happens. Commented Oct 30, 2021 at 21:12
  • @Majenko, at least this thing manages to work while the temperature is positive. I now wait until the temperature outside drops below zero, since my DHT22 is installed outside without a possibility to move it. Maybe, changing temperature *= -1; to temperature *= -1.0f; will help? Commented Oct 31, 2021 at 4:55
  • That's unlikely to help, because temperature is already a float at that point. Commented Oct 31, 2021 at 7:54