{"action":"created","issue":{"url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/2","repository_url":"https://api.github.com/repos/krzychb/OnlineHumidifier","labels_url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/2/comments","events_url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/2/events","html_url":"https://github.com/krzychb/OnlineHumidifier/issues/2","id":185722196,"number":2,"title":"errors reading sensor","user":{"login":"consolacion","id":8614925,"avatar_url":"https://avatars.githubusercontent.com/u/8614925?v=3","gravatar_id":"","url":"https://api.github.com/users/consolacion","html_url":"https://github.com/consolacion","followers_url":"https://api.github.com/users/consolacion/followers","following_url":"https://api.github.com/users/consolacion/following{/other_user}","gists_url":"https://api.github.com/users/consolacion/gists{/gist_id}","starred_url":"https://api.github.com/users/consolacion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/consolacion/subscriptions","organizations_url":"https://api.github.com/users/consolacion/orgs","repos_url":"https://api.github.com/users/consolacion/repos","events_url":"https://api.github.com/users/consolacion/events{/privacy}","received_events_url":"https://api.github.com/users/consolacion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-27T16:43:53Z","updated_at":"2016-10-27T19:41:54Z","closed_at":null,"body":"First: great article, but I came across something odd.\r\nI have come as far as using the Onlinehumidiefier-MQTT, however, the  DHT11 sensor is read correct  one time after startup and subsequently it will not read (returning the error message). I have temporarily  blocked out the 'return' to get it out of endless trying and to see whats happening but it will just have a read error most of the time with a  very sporadic  correct read.\r\nI did set the type correct but even if I would not have, I would still see a reading albeit not correct, but as said I just dont get a reading at all.\r\nif I do a reset, yes then the first or second reading will succeed but then it is just 'failed to read' most of the time.\r\n\r\nOfcourse I tried a different sensor, same results. So I tried just reading the sensor with a basic program as provided in the library, works perfect. So, although I do not have a clou yet how, but somehow the entire program is interfering with the reading of the sensor.\r\nIf I add a float variable \"t\" to read the temperature, that has the same problems: sensor just  likes to be read directly after startup and further no more, while  the library example program works flawlessly.\r\n\r\nI tried  shortening the 20 sec interval to no avail.\r\n\r\nObviously something is not ok here. Any ideas? Using a Wemos D1 mini\r\n\r\nBut again, great article\r\n"},"comment":{"url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/comments/256748169","html_url":"https://github.com/krzychb/OnlineHumidifier/issues/2#issuecomment-256748169","issue_url":"https://api.github.com/repos/krzychb/OnlineHumidifier/issues/2","id":256748169,"user":{"login":"krzychb","id":12953787,"avatar_url":"https://avatars.githubusercontent.com/u/12953787?v=3","gravatar_id":"","url":"https://api.github.com/users/krzychb","html_url":"https://github.com/krzychb","followers_url":"https://api.github.com/users/krzychb/followers","following_url":"https://api.github.com/users/krzychb/following{/other_user}","gists_url":"https://api.github.com/users/krzychb/gists{/gist_id}","starred_url":"https://api.github.com/users/krzychb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzychb/subscriptions","organizations_url":"https://api.github.com/users/krzychb/orgs","repos_url":"https://api.github.com/users/krzychb/repos","events_url":"https://api.github.com/users/krzychb/events{/privacy}","received_events_url":"https://api.github.com/users/krzychb/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T19:41:54Z","updated_at":"2016-10-27T19:41:54Z","body":"Hi @consolacion,\r\n\r\nI have also noticed DHT sensor read errors but for DHT22 I was using.\r\nThe error has been resolved after implementing [this fix](https://github.com/adafruit/DHT-sensor-library/issues/48) that to DHT11.\r\n\r\nPlease check it out - I wonder if this fix will work for you as well."}}
{"actor":{"display_login":"krzychb"}}