LCD Not working through Serial Communication

I am creating a program for path Guider.I am sending the data through Serial communication.According to the data sent the instructions should be displayed on the LCD.But it is not working.Any suggestions

#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); // pins for RS, E, DB4, DB5, DB6, DB7
void setup()
{

lcd.begin(16, 2);
lcd.clear();
lcd.setCursor(2, 0);
lcd.print("FIRE DETECTED ");
lcd.setCursor(2, 1);
lcd.print(“ALARM”);

}
void loop()
{

if (Serial.available()) {

int inByte = Serial.read();
switch (inByte) {
case ‘y’:
Serial.write(“y”);
lcd.clear();
lcd.setCursor(2,0);
lcd.write(“FOLLOW”);
delay(3000);
break;
case ‘2’:
lcd.clear();
lcd.setCursor(2,0);
lcd.write(“STOP”);
delay(3000);
break;
case ‘3’:
lcd.clear();
lcd.setCursor(2,0);
lcd.print(“MOVE BACK”);
delay(3000);
break;
case ‘4’:
lcd.clear();
lcd.setCursor(2,0);
lcd.print(“TURN LEFT”);
delay(3000);
break;
case ‘5’:
lcd.clear();
lcd.setCursor(2,0);
lcd.print(“TURN RIGHT”);
delay(3000);
break;
case ‘6’:
lcd.clear();
lcd.setCursor(2,0);
lcd.print(“WAIT HERE”);
delay(3000);
break;
case ‘7’:
lcd.clear();
lcd.setCursor(5,0);
lcd.print("MOVE ON ");
lcd.setCursor(5,1);
lcd.print(“SIREN SOUND”);
delay(3000);
break;
}
}

}

if (Serial.available()) {

I doubt you have a serial mode LCD attached to the hardware serial port. If you have a serial LCD, you will want to use SoftwareSerial.

This Sample program works fine with my lcd…I am using Arduino UNO

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup()
{
Serial.begin(9600);
}

void loop()
{
if (Serial.available()) {
lcd.write(Serial.read());
}
}

This Sample program works fine with my lcd…I am using Arduino UNO

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup()
{
Serial.begin(9600);
}

void loop()
{
if (Serial.available()) {
lcd.write(Serial.read());
}
}

What should i change in my above program??

Oh! Sorry, I just went by yout title, and assumed you were trying to write serial data to an LCD, which you are not. You are receiving serial data from the PC, and writing to the LCD with the protocol in the LiquidCrystal library.

Anyway, you need a Serial.begin (9600); (or choose any baud rate you want)

It must be placed in setup()

Thanks a lot....I was checking and checking again...Couldnt identify the mistake.....Silly Mistake :P :P