#include <LiquidCrystal.h>
int sensorValue = 0;
#include <SoftwareSerial.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(11, 10, 5, 4, 3, 2);
int button1=6;
int button2=7;
int button3=8;
int button4=A0;
int button1state=0;
int button2state=0;
int button3state=0;
int button4state=0;
void setup()
{
pinMode(button1, INPUT_PULLUP);
pinMode(button2, INPUT_PULLUP);
pinMode(button3, INPUT_PULLUP);
pinMode(button4, INPUT_PULLUP);
pinMode(A0, INPUT);
lcd.setCursor(0,0);
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
Serial.begin(900);
lcd.print("WELCOME ");
delay(1000);
lcd.clear();
}
void loop()
{
button1state=digitalRead(button1);
button2state=digitalRead(button2);
button3state=digitalRead(button3);
button4state=digitalRead(button4);
if(button4state==LOW){
lcd.clear();
lcd.print("Take medicine 1");
lcd.print("Panado=1");
delay(1000);
}
}