float de un decimal

otra sería

float t = ((int) (dht.readTemperature()*10))/10.0;

y ya sale a 1 decimal.

1 Like