//controliing led and lcd with serial monitor
//12221200
#include <LiquidCrystal.h>
LiquidCrystal lcd(2,16,19,18,32,33);
void setup(){
lcd.begin(16,2);
pinMode(13, OUTPUT);
Serial.begin(115200);
Serial.print("enter your input");
}
void loop(){
if(Serial.available()>0){
String x=Serial.readStringUntil('\n');
lcd.setCursor(0,0);
if(x=="on"){
digitalWrite(13,HIGH);
lcd.print("LED is ON");
}
else if(x == "off"){
digitalWrite(13,LOW);
lcd.print("LED is OFF");
}
}
}