#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
pinMode(2, INPUT);
pinMode(4, OUTPUT);
lcd.init();
lcd.backlight();
}//////////////////////end setup
void loop() {
lcd.setCursor(0,0);
lcd.print("Hello");
int x = digitalRead(2);
if(x==1){
digitalWrite(4, HIGH);
}else{
digitalWrite(4, LOW);
}
}//////////////////////end loop