DHT22 Sync Error

Hi,
I bought this sensor but I read this msg on serial console "Sync Timeout" always.
I follow this tutorial
https://www.dfrobot.com/wiki/index.php/ ... KU:SEN0137
to connect the sensor to my Arduino Yun and Arduino Uno Wifi.
I used the port 7 and tried to use other ports but nothing change, always the same error.
The code loaded in both Arduino is the same on the wiki.
Can someone help me?
Is possible that sensor is broken? How can I understand it?
Thx
I bought this sensor but I read this msg on serial console "Sync Timeout" always.
I follow this tutorial
https://www.dfrobot.com/wiki/index.php/ ... KU:SEN0137
to connect the sensor to my Arduino Yun and Arduino Uno Wifi.
I used the port 7 and tried to use other ports but nothing change, always the same error.
The code loaded in both Arduino is the same on the wiki.
Can someone help me?
Is possible that sensor is broken? How can I understand it?
Thx
2017-07-02 05:21:13 i've got the same problem,
the sensor used with this library seems to give always the sync error,
i'm using arduino uno rev3
ide - arduino 1.6.10 or arduinostudio or stino2017 ST3 (same error)
i think there is some seriuos problem with the library https://github.com/nethoncho/Arduino-DHT22/issues/12
using the adafruit library for the same sensor works fine but sometimes the reading return 0 and the library is huge and get a lot of space on the board
i need to use a more lightweight library
any suggestion?
thanks
Mandria
man
the sensor used with this library seems to give always the sync error,
i'm using arduino uno rev3
ide - arduino 1.6.10 or arduinostudio or stino2017 ST3 (same error)
i think there is some seriuos problem with the library https://github.com/nethoncho/Arduino-DHT22/issues/12
using the adafruit library for the same sensor works fine but sometimes the reading return 0 and the library is huge and get a lot of space on the board
i need to use a more lightweight library
any suggestion?
thanks
Mandria

2017-06-27 23:36:18 I found a post here
http://forum.arduino.cc/index.php?topic=91569.0
maybe you can try to change the code in .cpp
if (retryCount > 35) //(Spec is 50 us, 35*2 == 70 us)
{
return DHT_ERROR_SYNC_TIMEOUT;
}
To
if (retryCount > 70) //(Spec is 50 us, 35*2 == 70 us)
{
return DHT_ERROR_SYNC_TIMEOUT;
}
robert.chen
http://forum.arduino.cc/index.php?topic=91569.0
maybe you can try to change the code in .cpp
if (retryCount > 35) //(Spec is 50 us, 35*2 == 70 us)
{
return DHT_ERROR_SYNC_TIMEOUT;
}
To
if (retryCount > 70) //(Spec is 50 us, 35*2 == 70 us)
{
return DHT_ERROR_SYNC_TIMEOUT;
}

2017-06-22 14:55:47 I remove all DHT library from arduino library folder, I reloaded the Arduino IDE, try to compile and it fails.
So added the DHT22 library taken from here: https://codeload.github.com/nethoncho/A ... zip/master
I uploaded the code without error on my Arduino yun but, I continue to see the same error: "Requesting data...Sync Timeout"
Any tips?
thx
abaddon83
So added the DHT22 library taken from here: https://codeload.github.com/nethoncho/A ... zip/master
I uploaded the code without error on my Arduino yun but, I continue to see the same error: "Requesting data...Sync Timeout"
Any tips?
thx

2017-06-14 23:07:50 It may because of the library, try to delete every "DHT" related library in your Arduino library and re-download the library, install it
robert.chen
