error: expected ';' before string constant

So I am currently going through the walk through for the arduino starter kit. And I have got stuck on the project Color Mixing Lamp while writing the code.

After I finish the code and tried verifiying it to comes up with an error saying

Color_Mixing_Lamp.ino: In function 'void loop()':
Color_Mixing_Lamp.ino:42:13: error: expected ';' before string constant
Color_Mixing_Lamp.ino:42:26: error: statement cannot resolve address of overloaded function
Error compiling.

I have gone through my code and haven't found where my error is. So im trying to see if i can show you guys the code, if someone is able to figure out what I've done wrong. Thanks!!

here is the code for it

const int greenLEDPin = 9;
const int redLEDPin = 11;
const int blueLEDPin = 10;
const int redSensorPin = A0;
const int greenSensorPin = A1;
const int blueSensorPin = A2;
int redValue = 0;
int greenValue = 0;
int blueValue = 0;
int redSensorValue = 0;
int greenSensorValue = 0;
int blueSensorValue = 0;

void setup() {

Serial.begin(9600);

pinMode(greenLEDPin, OUTPUT);
pinMode(redLEDPin, OUTPUT);
pinMode(blueLEDPin, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
redSensorValue = analogRead(redSensorPin);
delay(5);
greenSensorValue = analogRead(greenSensorPin);
delay(5);
blueSensorValue = analogRead(blueSensorPin);
Serial.print("Raw Sensor Values \t Red:");
Serial.print(redSensorValue);
Serial.print("\t Green:");
Serial.print(greenSensorValue);
Serial.print("/t Blue:");
Serial.print(blueSensorValue);
redValue = redSensorValue/4;
greenValue = greenSensorValue/4;
blueValue = blueSensorValue/4;
Serial.print("Mapped Sensor Values /t Red: " );
Serial.print(redValue);
Serial.print"\t Green: ");
Serial.print(greenValue);
Serial.print("\t Blue: ");
Serial.print(blueValue);
analogWrite(redLEDPin, redValue);
analogWrite(greenLEDPin, greenValue);
analogWrite(blueLEDPin, blueValue);
}

Color_Mixing_Lamp.ino (1.19 KB)

Serial.print"\t Green: ");

You're missing a left paren.

It tells you what line the problem is on, you know... that's the 42 (it's on line 42)

Serial.print"\t Green: ");

I started looking before string constants. :slight_smile: