missing terminating " character

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);

Serial.print("Humidity = ");
Serial.print(DHT.humidity);
Serial.print("% ");
Serial.print("Temperature = ");
Serial.print(DHT.temperature);
Serial.println("C
");

delay(3000);
}

  Serial.println("C 
");

Why the whacky formatting and split line of code ?

Serial.println("C
");

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.)

Instead of

  Serial.println("C 
");

To this

  Serial.println("C ");

Hi,
Welcome to the forum.

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.

Thanks.. Tom.. :slight_smile: