Temp Humid sensor error question

Setup:

Arduino IDE 1.8.8

Seeeduino V4.2

Base Shield

Grove Temperature&Humidity Sensor



So i set this up as per the directions on the Temp and Humid webpage. However, I kept getting error message in the serial monitor that it could not read the sensor. “Read failFailed to read from DHT Humidity: 0.00 % Temperature: 0.00 *C”

To get it to work, I moved the sensor from D2 to I2C Grove Connector. Then changed the DHTPIN variable from 2 to 19. It works!

I went to reproduce the error with the original setup (D2 and DHTPIN=2). It worked the second time around. Any ideas as to what caused the original error ?

Hi there,



I try to simulate the issue, but no luck, i can not get the error code.

i use this library, <LINK_TEXT text=“https://github.com/Seeed-Studio/Grove_T … ity_Sensor”>https://github.com/Seeed-Studio/Grove_Temperature_And_Humidity_Sensor</LINK_TEXT>,

please let us know which library do you use. thanks.