#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
String line;
void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.backlight();
Serial.begin(9600);
Serial.println("Enter the line");
}
void loop() {
// put your main code here, to run repeatedly:
line=Serial.readString();
lcd.setCursor(0,0);
lcd.print(line);
delay(10); // this speeds up the simulation
}