Comme le disais vil1driver, c'est bien du coté de la fonction 'round' sous python
Sauf que je m’évertuais à la placer dans le script sonde_dht.py
Hors il fallait la placer dans AdafruitDHT.py !!!
Code : Tout sélectionner
# Try to grab a sensor reading. Use the read_retry method which will retry up
# to 15 times to get a sensor reading (waiting 2 seconds between each retry).
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
humidity = round(humidity, 2)
temperature = round(temperature, 2)
Merci à vous !!