#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);


void setup() {
  lcd.begin(16,2);
  Serial.begin(9600);
  Serial.println("Welcome to the LCD");

}

void loop() {
  String x = Serial.readStringUntil('\n');
  lcd.setCursor(2,0);
  lcd.print(x);
  delay(2000);
  if(Serial.available()>0)
  {
    int x = Serial.read();
    Serial.println(x);
    if(x =='1')
    {
      digitalWrite(8, HIGH);
      Serial.println("LED ON");
    }
    else if(x =='0')
    {
      digitalWrite(8,LOW);
      Serial.println("LED OFF");
    }
  }

}