Here's my unfinished code
i keep getting this error
Arduino: 1.8.1 (Mac OS X), Board: "Arduino/Genuino Uno"
/Users/whelpleyc7808/Desktop/maybe/maybe.ino: In function 'void loop()':
maybe:21: error: expected primary-expression before '.' token
int chk = DHT.read11(DHT11_PIN7)
^
maybe:21: error: 'DHT11_PIN7' was not declared in this scope
int chk = DHT.read11(DHT11_PIN7)
^
maybe:27: error: expected primary-expression before '.' token
int chk = DHT.read11(DHT11_PIN);
^
maybe:29: error: expected ';' before 'Serial'
Serial.println(DHT.temperature);
^
maybe:31: error: expected ';' before 'Serial'
Serial.println(DHT.humidity);
^
maybe:35: error: 'temperature' was not declared in this scope
if(temperature < desiredTemp){
^
exit status 1
expected primary-expression before '.' token
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
from where did you get the read11() function? is that part of the Adafruit sensor library? It isn't part of the DHT library that comes with Arduino IDE.
why are you creating an int, initializing it with some value (perhaps) and then doing nothing with it? It is destroyed after the closing brace(more on variable scope here).