I succesfully configured dht and i can read the temperature value. However, since DHT reads also humidity. I have no idea how to retrieve it.
static saul_reg_t* saul_dht; saul_dht = saul_reg_find_name(“dht”);
int res = saul_reg_read(saul_dht, &phy); if (res) printf(“temperature: %d %d %d %d %d C\n”, phy.val,phy.val,phy.val,phy.unit,phy.scale); else printf(“Sensor read failure: %d\n”, res);
In printf, i tried to acess different phy.val’s to find humidity. However, still no luck.