Trying to get a DHT11 working on an Arduino UNO keep getting a missing terminating " character error message when i try to compile
Compiler errors on line "); 3rd line up from the bottom.
can someone help please?
thanks
ht DHT;
int DHTpin = 2;
void setup(){
// initialize serial communication at 9600 baud rate
Serial.begin(9600);
}
void loop(){
//Read the sensor value
DHT.read11(DHTpin);
At some time in the not-too-distant path, gcc stopped accepting strings with embedded newlines.
If you want the extra blank line on output, you should use:
Serial.println("C \n");
(or something similar, depending on whether you really wanted that trailing space, and etc.)
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.