DHT11 capteur de température

Bonjour,

J'ai voulu lancer un programme sur mon capteur de température. Le problème, c'est que ça m'affiche : DHT_Test:3:5: error: no matching function for call to 'DHT::DHT()', voici le détail ci-dessous

Que faire ?

Arduino : 1.8.11 (Windows 10), Carte : "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

DHT_Test:3:5: error: no matching function for call to 'DHT::DHT()'

DHT dht;

^~~

In file included from C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\arduino-DHT-master\examples\DHT_Test\DHT_Test.pde:1:0:

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:49:4: note: candidate: DHT::DHT(uint8_t, uint8_t, uint8_t)

DHT(uint8_t pin, uint8_t type, uint8_t count=6);

^~~

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:49:4: note: candidate expects 3 arguments, 0 provided

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate: constexpr DHT::DHT(const DHT&)

class DHT {

^~~

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate expects 1 argument, 0 provided

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate: constexpr DHT::DHT(DHT&&)

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:47:7: note: candidate expects 1 argument, 0 provided

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\arduino-DHT-master\examples\DHT_Test\DHT_Test.pde: In function 'void setup()':

DHT_Test:11:7: error: 'class DHT' has no member named 'setup'

dht.setup(2); // data pin 2

^~~~~

C:\Users\Yassir EL MANEI\Documents\Arduino\libraries\arduino-DHT-master\examples\DHT_Test\DHT_Test.pde: In function 'void loop()':

DHT_Test:16:13: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'

delay(dht.getMinimumSamplingPeriod());

^~~~~~~~~~~~~~~~~~~~~~~~

DHT_Test:18:24: error: 'class DHT' has no member named 'getHumidity'; did you mean 'readHumidity'?

float humidity = dht.getHumidity();

^~~~~~~~~~~

readHumidity

DHT_Test:19:27: error: 'class DHT' has no member named 'getTemperature'; did you mean 'readTemperature'?

float temperature = dht.getTemperature();

^~~~~~~~~~~~~~

readTemperature

DHT_Test:21:20: error: 'class DHT' has no member named 'getStatusString'

Serial.print(dht.getStatusString());

^~~~~~~~~~~~~~~

DHT_Test:27:22: error: 'class DHT' has no member named 'toFahrenheit'

Serial.println(dht.toFahrenheit(temperature), 1);

^~~~~~~~~~~~

Plusieurs bibliothèque trouvées pour "DHT.h"
Utilisé : C:\Users\Yassir
Non utilisé : C:\Users\Yassir
exit status 1
no matching function for call to 'DHT::DHT()'

Ce rapport pourrait être plus détaillé avec
l'option "Afficher les résultats détaillés de la compilation"
activée dans Fichier -> Préférences.

Plusieurs bibliothèque trouvées pour "DHT.h"

Ceci devrait te mettre sur la piste.