You are reading a single comment by @AlexOwen and its replies. Click here to read the full conversation.
  • I've just got around to testing this with my DHT22 (uploaded to an ESP-01 10 minutes ago) and I'm also occasionally getting negative numbers. As well as that I'm getting a lot of checksum errors that I wasn't getting with the old library.

    Here are some results, in case they're useful:

    {
      "raw": "010000000110010101000000001110001001111­000",
      "rh": 40.5, "temp": 22.6 }
    {
      "raw": "010000000110010100000000001110000101110­110",
      "rh": 40.4, "temp": 22.5 }
    {
      "raw": "010000000110010101000000001110000101110­111",
      "rh": 40.5, "temp": 22.5 }
    {
      "raw": "010000000110010101000000001110000101110­111",
      "rh": 40.5, "temp": 22.5 }
    {
      "raw": "010000000110010101000000001110000101110­111",
      "rh": 40.5, "temp": 22.5 }
    {
      "raw": "010000000110010101000000001110000101110­111",
      "rh": 40.5, "temp": 22.5 }
    { "err": true, "checksumError": true,
      "raw": "0100000001100101110000000011100001",
      "temp": -1, "rh": -1 }
    {
      "raw": "010000000110010111000000001110000101111­001",
      "rh": 40.7, "temp": -22.5 }
    { "err": true, "checksumError": true,
      "raw": "010000000110010111000000001110",
      "temp": -1, "rh": -1 }
    {
      "raw": "010000000110010111000000001110000101111­001",
      "rh": 40.7, "temp": -22.5 }
    {
      "raw": "010000000110010111000000001110000101111­001",
      "rh": 40.7, "temp": -22.5 }
    {
      "raw": "010000000110010111000000001110000101111­001",
      "rh": 40.7, "temp": -22.5 }
    {
      "raw": "010000000110010111000000001110000001111­000",
      "rh": 40.7, "temp": -22.4 }
    { "err": true, "checksumError": true,
      "raw": "010000000110010111000000001110000",
      "temp": -1, "rh": -1 }
    { "err": true, "checksumError": true,
      "raw": "010000000110011001000000001110000",
      "temp": -1, "rh": -1 }
    {
      "raw": "010000000110011000000000001110000001111­001",
      "rh": 40.8, "temp": 22.4 }
    { "err": true, "checksumError": true,
      "raw": "01000000011001100000000000111000",
      "temp": -1, "rh": -1 }
    {
      "raw": "010000000110011000000000001110000101111­010",
      "rh": 40.8, "temp": 22.5 }
    { "err": true, "checksumError": true,
      "raw": "010000000110011001000000001110000",
      "temp": -1, "rh": -1 }
    {
      "raw": "010000000110011001000000001110000001111­010",
      "rh": 40.9, "temp": 22.4 }
    
About

Avatar for AlexOwen @AlexOwen started