Grove - Temperature&Humidity Sensor (DHT11) only produces five recordings

Hi!

I’m a beginner with Grove but I bought a the temperature and humidity sensor (DHT11) and have found difficulty in editing the code as I am unfamiliar with the language and have very little coding background. I am using an Arduino Uno. This is the part I’m having difficulty with.

How should I change the code?

Any help would be really appreciated!

image

This is the part of the code I think I need to change

Hi @amyj
Yes, you are right. Please change it to the below code.
#define DHTPIN 2 // what pin we’re connected to

// Uncomment whatever type you’re using!
#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)