#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);



void setup() {
  pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
pinMode(1, INPUT);
pinMode(2, INPUT);

lcd.init();
  lcd.backlight();

attachInterrupt(digitalPinToInterrupt(3), TUTUP, FALLING);

}

void loop() {
  int button1 = digitalRead(1);
int button2 = digitalRead(2);


if (button1 == HIGH)
{

digitalWrite(13, HIGH);
digitalWrite(7, LOW);
digitalWrite(12, LOW);
digitalWrite(8, HIGH);

 lcd.setCursor(2,0);
  lcd.print("CONVEYOR FWD");

}
if (button2 == HIGH)
{
  digitalWrite(13, LOW);
digitalWrite(7, HIGH); 
digitalWrite(12, HIGH);
digitalWrite(8,LOW);

lcd.setCursor(2,0);
  lcd.print("CONVEYOR RVS");
}
 
}

void TUTUP()
 {
digitalWrite(13, LOW);
digitalWrite(7, LOW);
digitalWrite(12, LOW);
digitalWrite(8,LOW);


}
 
NOCOMNCVCCGNDINLED1PWRRelay Module
NOCOMNCVCCGNDINLED1PWRRelay Module