#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
int pir =7;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.init();
pinMode(pir, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int a = digitalRead(pir);
Serial.println(a);
if(a == 1){
lcd.setCursor(0, 0);
delay(1000);
lcd.print("Not Ready");
}
else{
lcd.setCursor(0, 0);
delay(1000);
lcd.print(" Ready");
}
}