C:/User/MyDocument/Arduino/Library/DHT
Is there some BETTER way to list the code and error printout?
Here is the Sketch and error listing. I have ALL announcements turned on in the Preferences program.
// Libraries
#include "DHT.h"
// Pin
#define DHTPIN 5
// Use DHT11 sensor
#define DHTTYPE DHT22
// Initialize DHT sensor
DHT dht(DHTPIN, DHTTYPE, 15);
void setup() {
//}
// Start Serial
Serial.begin(115200);
// Init DHT
dht.begin();
}
void loop() {
// }
// Reading temperature and humidity
float h = dht.readHumidity();
// Read temperature as Celsius
float t = dht.readTemperature();
// Display data
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.println("*C ");
// Wait a few seconds between measurements.
delay(2000);
}
++++++++++++++++++++++ ERROR COPY after try to compile +++++++++++++++++
Arduino: 1.6.4 (Windows 7), Board: "Generic ESP8266 Module, 80 MHz, 115200, 512K"
C:\Users\Lynn&Bill\Documents\Arduino\hardware\esp8266com/esp8266/tools/windows/xtensa-lx106-elf/bin/xtensa-lx106-elf-g++ -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ -IC:\Users\Lynn&Bill\Documents\Arduino\hardware\esp8266com/esp8266/sdk//include -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -std=c++11 -MMD -DF_CPU=80000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_ESP8266 -DESP8266 -IC:\Users\Lynn&Bill\Documents\Arduino\hardware\esp8266com\esp8266\cores\esp8266 -IC:\Users\Lynn&Bill\Documents\Arduino\hardware\esp8266com\esp8266\variants\generic C:\Users\LYNN&B~1\AppData\Local\Temp\build3518179823476820621.tmp\DHTtesterESP8266.cpp -o C:\Users\LYNN&B~1\AppData\Local\Temp\build3518179823476820621.tmp\DHTtesterESP8266.cpp.o DHTtesterESP8266.ino:2:17: fatal error: DHT.h: No such file or directory
compilation terminated.
Error compiling.
++++++++++++++++++++++++++
Thanks ib advance for any help. I'm not a C+= programmer and would also like some reference book that explains what is happening in the Arduion ( What the Arduino Compiler is actually doing), what are the acceptable C++ Commands and what they do, and lastly, where are the files (Sketches) kept and where do the Libraries need to be to be picked up by these Sketches?)
Bill)