Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHT22 measure wrong values #358

Closed
fiurthorn opened this issue Jan 14, 2022 · 1 comment
Closed

DHT22 measure wrong values #358

fiurthorn opened this issue Jan 14, 2022 · 1 comment

Comments

@fiurthorn
Copy link

fiurthorn commented Jan 14, 2022

using DHT22 from https://www.amazon.de/gp/product/B08NP8NR1J/ref=ppx_yo_dt_b_asin_title_o01_s03?ie=UTF8&psc=1.
gives wrong values:

  • about 4808% humidity
  • -1433°C
humidity := dht.NewWithPolicy(machine.GP15, dht.DHT22, dht.UpdatePolicy{})
t2, h, _ := humidity.Measurements()
temp2 = fmt.Sprintf("%d", t2/10)
hu = fmt.Sprintf("%d", h/10)
tinyfont.WriteLine(&display, &freeserif.Regular9pt7b, 40, 15, hu+" %", white)
tinyfont.WriteLine(&display, &freeserif.Regular9pt7b, 40, 30, temp2+"  C", white)
@fiurthorn fiurthorn changed the title DT22 measre wrong values DHT22 measre wrong values Jan 14, 2022
@fiurthorn fiurthorn changed the title DHT22 measre wrong values DHT22 measure wrong values Jan 18, 2022
@conejoninja
Copy link
Member

Could we close this issue? seems to be fixed by #390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants