These error occurs when i try to compile the sketch, i saved the sketch.ino alonside the DHT.h from
https://github.com/adafruit/DHT-sensor- ... ster/DHT.h in the same folder:
Archiving built core (caching) in: C:\Users\Beto\AppData\Local\Temp\arduino_cache_129390\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_512K64,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____d15f8909c9b4e6a4f9b307e83a579dfe.a
sketch\ESP8266_DHT22.ino.cpp.o:(.text.setup+0x2c): undefined reference to `DHT::begin()'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.setup+0x51): undefined reference to `DHT::begin()'
sketch\ESP8266_DHT22.ino.cpp.o: In function `setup':
C:\Users\Beto\Desktop\ESP8266_DHT22/ESP8266_DHT22.ino:43: undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'
sketch\ESP8266_DHT22.ino.cpp.o: In function `__static_initialization_and_destruction_0':
C:\Users\Beto\Desktop\ESP8266_DHT22/ESP8266_DHT22.ino:45: undefined reference to `DHT::DHT(unsigned char, unsigned char, unsigned char)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x6c): undefined reference to `DHT::readHumidity(bool)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x70): undefined reference to `DHT::readTemperature(bool, bool)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x74): undefined reference to `DHT::computeHeatIndex(float, float, bool)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0x9b): undefined reference to `DHT::readHumidity(bool)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0xa9): undefined reference to `DHT::readTemperature(bool, bool)'
sketch\ESP8266_DHT22.ino.cpp.o:(.text.loop+0xb8): undefined reference to `DHT::readTemperature(bool, bool)'
sketch\ESP8266_DHT22.ino.cpp.o: In function `String::operator+=(char const*)':
C:\Users\Beto\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/WString.h:121: undefined reference to `DHT::computeHeatIndex(float, float, bool)'
collect2.exe: error: ld returned 1 exit status
exit status 1
Erro compilando para a placa Generic ESP8266 Module