#include <Servo.h>
#include <LiquidCrystal_I2C.h>
const int BUTTON = 12;
const int IRSensor = 9;
const int LEDstop = ;
const int LEDgo = ;
const int buzzer = ;
int IRstate = 0;
int BUTTONstate = 0;
Servo palang;
LiquidCrystal_I2C lcd (0x27, 20, 4);
void setup() {
lcd.init();
lcd.backlight;
lcd.setCursor(0,0);
lcd.print("Welcome");
lcd.setCursor(0,1);
lcd.print("Press Button For Get In");
palang.attach(3);
pinMode (BUTTON, INPUT);
pinMode(IRSensor, INPUT);
}
void loop() {
BUTTONstate = digitalRead(BUTTON);
IRstate = digitalRead(IRSensor);
if(IRstate == 1){
}
if (BUTTONstate == HIGH)
{
sritutech.write(90);
delay(5000);
}
else
{
sritutech.write(0);
}
}
//sritutech.write(0);
//delay(1000);
//sritutech.write(90);
//delay(1000);