diff --git a/EXAMPLES/Python/DHT11_SENSOR/dht11.py b/EXAMPLES/Python/DHT11_SENSOR/dht11.py index 455ad2a..73ba89f 100644 --- a/EXAMPLES/Python/DHT11_SENSOR/dht11.py +++ b/EXAMPLES/Python/DHT11_SENSOR/dht11.py @@ -140,7 +140,7 @@ class DHT11(object): """ return self - def next(self): + def __next__(self): """ Call the read method and return temperature and humidity informations. """