So I have a DFRobot LCD keypad shield, and an Arduino UNO.
I want to make an outlet that's humidity controlled like the InkBird controllers.
I was trying to use this code https://create.arduino.cc/projecthub/Shaeroden/humidity-controller-c13dad but when trying to verify the sketch it just says dht.h no such file or directory.
I have installed the DHT library from the library manager within the IDE so I'm not sure what to do at this point to make it work.
the dht.h file is actually caps like DHT.h, and if I rename it to lower case then I get the error Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
Shaeroden_Humidity_Controller:23:1: error: 'dht' does not name a type
dht DHT;
^~~
C:\Users\Verti\Documents\Arduino\Shaeroden_Humidity_Controller\Shaeroden_Humidity_Controller.ino: In function 'void setup()':
Shaeroden_Humidity_Controller:101:16: error: expected primary-expression before '.' token
int chk = DHT.read11(DHT11_PIN);
^
Shaeroden_Humidity_Controller:107:16: error: expected primary-expression before '.' token
lcd.print(DHT.humidity);
^
C:\Users\Verti\Documents\Arduino\Shaeroden_Humidity_Controller\Shaeroden_Humidity_Controller.ino: In function 'void loop()':
Shaeroden_Humidity_Controller:163:18: error: expected primary-expression before '.' token
int chk = DHT.read11(DHT11_PIN);
^
Shaeroden_Humidity_Controller:166:21: error: expected primary-expression before '.' token
Serial.print(DHT.humidity);
^
Shaeroden_Humidity_Controller:196:18: error: expected primary-expression before '.' token
lcd.print(DHT.humidity);
^
Shaeroden_Humidity_Controller:265:9: error: expected primary-expression before '.' token
if(DHT.humidity <= setpoint - 3 and syson == true){ //if humidity is 3% lower than setpoint
^
Shaeroden_Humidity_Controller:270:14: error: expected primary-expression before '.' token
else if(DHT.humidity >= setpoint + 3 and syson == true){ //if humidity is 3% above setpoint
^
exit status 1
'dht' does not name a type
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.