Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Bad data send when reboot #20

Open
wanghuangjie opened this issue Jun 9, 2017 · 2 comments
Open

Bad data send when reboot #20

wanghuangjie opened this issue Jun 9, 2017 · 2 comments

Comments

@wanghuangjie
Copy link

{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"motion detected","ldr":"0","temperature":"0.00"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"motion detected","ldr":"757","temperature":"0.00"}
{"state":"OFF","color":{"r":255,"g":255,"b":255},"brightness":255,"humidity":"0.00","motion":"motion detected","ldr":"757","temperature":"86.00"}

Multisensor will send "0" when reboot, please help if there is any solution .

@jumpalottahigh
Copy link
Contributor

Hi. I seem to have a similar issues - the multisensor does not report humidity for some reason. Everything else works fine and I know it's not a faulty sensor, since I tested it separately, and also tested with a second DHT22 sensor. Will look into this today and let you know if I figure something out.

image

@jumpalottahigh
Copy link
Contributor

Double check your code, I had a spelling mistake (although the program would still compile).
Had a float newHumValue = dht.read(); which should have been float newHumValue = dht.readHumidity();. No idea how that happened, but everything works like a charm.

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

No branches or pull requests

2 participants