DHT sensor bad reading

Hello,

i’ve received my new batch of GrovePi sensors including both the OLED display and DHT (low cost) sensor.

When i tried the home_temp_hum_display project i’m getting bad readings from the DHT:

temp 793.6 Hum 844

and so on.

Is it a normal operation condition?

Regards

Hi again,

Changing the next line in code:

Original:
[ temp,hum ] = dht(dht_sensor_port,1) #Get the temperature and Humidity from the DHT sensor

Changed:
[ temp,hum ] = dht(dht_sensor_port,0) #Get the temperature and Humidity from the DHT sensor

is working for me.

Regards

You got it right.

The second parameter specifies the sensor that you are using. 1 is for the “Grove Humidity and Temperature sensor” Pro and 0 for the “Grove Temperature and Humidity Sensor”.