It has been a long time since I have done any coding and now I an trying to update some working code, I am getting an error which I don't understand.
This is the include
part of my code:
#include <DHT.h>
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <TinyGPS.h>
#include <TimeLib.h>
#include <Adafruit_BMP085.h>
The first line isn't happy.
Expanded_External_Temperatures_new_5hce:50:17: fatal error: DHT.h: No such file or directory
#include <DHT.h>
This is the library
directory as seen in the terminal:
me@me-desktop:~/Arduino/libraries$ ls
Adafruit_AM2320_sensor_library ArduinoMorse-master Centipede Entropy IoTtweetESP32 Rotary Streaming
Adafruit_BME280_Library arduino-softpwm-master ClickButton ESP8266-ping Keyboard RotaryEncoder Time
Adafruit-BMP085 arduino-toneac-master DHT Etherkit_Morse LedControl-master SD TinyGPS
Adafruit_Circuit_Playground BlueDot_BME280_Library DHT_sensor_library Ethernet NewPing SimpleDHT WiFiEsp
Adafruit_NeoPixel Bounce2 DS3231 Firmata PubSubClient SimpleTimer-master
Adafruit_Sensor-master Bridge DS3232RTC ICMPPing readme.txt Sodaq_BMP085
me@me-desktop:~/Arduino/libraries$
I get that there are (kind of) two DHT directories. As I said: It has been a long time.
But both are the same I just named the longer named one to simply DHT
.
This is what is in there:
me@me-desktop:~/Arduino/libraries$ cd DHT
me@me-desktop:~/Arduino/libraries/DHT$ ls
DHT.cpp DHT.h DHT_U.cpp DHT_U.h examples keywords.txt library.properties README.md
me@me-desktop:~/Arduino/libraries/DHT$
So I guess it should be called DHT
and not the longer version.
But.....
I don't understand why I am getting that error.
Someone - please.
Something which may be causing this:
When I ask for the version of the Arduino program it is 1.8.15
- yeah: old.
But I don't know where it has installed itself. I have an arduino
directory in my home
folder and all code in that directory and any libraries in the libraries
directory there.