{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/65","repository_url":"https://api.github.com/repos/adafruit/DHT-sensor-library","labels_url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/65/comments","events_url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/65/events","html_url":"https://github.com/adafruit/DHT-sensor-library/issues/65","id":188182464,"number":65,"title":"Cannot measure below 1 deg celcius. Sensor or code?","user":{"login":"nitech","id":1279436,"avatar_url":"https://avatars.githubusercontent.com/u/1279436?v=3","gravatar_id":"","url":"https://api.github.com/users/nitech","html_url":"https://github.com/nitech","followers_url":"https://api.github.com/users/nitech/followers","following_url":"https://api.github.com/users/nitech/following{/other_user}","gists_url":"https://api.github.com/users/nitech/gists{/gist_id}","starred_url":"https://api.github.com/users/nitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitech/subscriptions","organizations_url":"https://api.github.com/users/nitech/orgs","repos_url":"https://api.github.com/users/nitech/repos","events_url":"https://api.github.com/users/nitech/events{/privacy}","received_events_url":"https://api.github.com/users/nitech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-11-09T07:28:17Z","updated_at":"2016-12-01T18:54:00Z","closed_at":null,"body":"I run the standard code, included in the [example folder](https://github.com/adafruit/DHT-sensor-library/tree/master/examples/DHT_Unified_Sensor). I put the sensor outside, to measure the current freezing norwegian temperatures, but look what it outputted: \r\n\r\nTemperature: 1.00 *C\r\nHumidity: 58.00%\r\n\r\nI notice two tings: \r\n\r\n1. There is about -6 deg c outside right now. Not +1\r\n2. Where are the decimals? "},"comment":{"url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/comments/264259770","html_url":"https://github.com/adafruit/DHT-sensor-library/issues/65#issuecomment-264259770","issue_url":"https://api.github.com/repos/adafruit/DHT-sensor-library/issues/65","id":264259770,"user":{"login":"geofbaum","id":9683836,"avatar_url":"https://avatars.githubusercontent.com/u/9683836?v=3","gravatar_id":"","url":"https://api.github.com/users/geofbaum","html_url":"https://github.com/geofbaum","followers_url":"https://api.github.com/users/geofbaum/followers","following_url":"https://api.github.com/users/geofbaum/following{/other_user}","gists_url":"https://api.github.com/users/geofbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/geofbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geofbaum/subscriptions","organizations_url":"https://api.github.com/users/geofbaum/orgs","repos_url":"https://api.github.com/users/geofbaum/repos","events_url":"https://api.github.com/users/geofbaum/events{/privacy}","received_events_url":"https://api.github.com/users/geofbaum/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T18:54:00Z","updated_at":"2016-12-01T18:54:00Z","body":"No worries, and I apologize if I came off as being rude in anyway. The link that nitech posted original points to the file in the Example folder of this repository for the Unified sensor code. The file is specifically called DHT_Unified_Sensor.ino so I did not know if you were using that example code to test your device. There is also the DHTtester.ino that is in the Example folder which uses the older code, it still works and it's the one that I've used more so as I haven't migrated all of my code over to the Unified Sensor code that Adafruit is pushing to make using different sensor types all work with a single type of code.\r\n\r\nEither way I'll attach a simple example of the code that I'm using if you want to compare it to what you are using to see if you can spot what might be causing your issue of not seeing negative values.\r\n\r\n#include <DHT.h>\r\n#define DHTPIN D4     // what pin we're connected to\r\n#define DHTTYPE DHT22   // DHT 22  (AM2302)\r\n \r\nDHT dht(DHTPIN, DHTTYPE);\r\n\r\nvoid setup() \r\n{\r\n    Serial.begin(9600);\r\n  delay(10);\r\n  dht.begin();\r\n}\r\n\r\nvoid loop() \r\n{\r\n  // Wait a few seconds between measurements.\r\n  delay(60000); // 2 minute delay = 120000 -- 1 minute delay = 60000 and so on\r\n\r\n  float h = dht.readHumidity();\r\n  float t = dht.readTemperature();\r\n\r\n    // Check if any reads failed and exit early (to try again).\r\n  if (isnan(h) || isnan(t) || isnan(f)) \r\n  {\r\n    Serial.println(\"Failed to read from DHT sensor!\");\r\n    return;\r\n  }\r\n\r\n  Serial.print(\"DHT22 Humidity: \");\r\n  Serial.print(h);\r\n  Serial.print(\" %\\t\");\r\n  Serial.print(\"DHT22 Temperature: \");\r\n  Serial.print(t);\r\n  Serial.print(\" *C \");\r\n  \r\n}\r\n\r\n"}}
{"actor":{"display_login":"geofbaum"}}