Currently, the DHT20 sensor is not compatible with the Arduino Sensor Kit library. Learn how to get readings from the DHT 20 sensor using a 3rd party library.
-
Download the Grove Temperature And Humidity Sensor library.
-
Manually install the library.
-
Uninstall any competing libraries. (e.g. previous versions of the Grove Temperature And Humidity Sensor library).
-
Make sure that only one DHT.h file is in your libraries folder. (The only DHT.h file available should be the one inside the “Grove_Temperature_And_Humidity_Sensor-master” folder).
-
Open the Arduino IDE and create a new sketch.
-
Copy this example to the sketch.
-
Change the serial speed to 9600 by writing
debug.begin(9600)
in line 21. -
Upload the sketch.