#include LiquidCrystal lcd(12,11,5,4,3,2); const int start = A2; const int strt = A0; const int END = A1; boolean y = true; boolean x = true; unsigned int s1 = 0; unsigned int s2 = 0; unsigned int s3 = 0; unsigned int s4 = 0; unsigned int s5 = 0; unsigned int m1 = 0; unsigned int m2 = 0; unsigned int m3 = 0; unsigned int m4 = 0; unsigned int m5 = 0; unsigned int ms1 = 0; unsigned int ms2 = 0; unsigned int ms3 = 0; unsigned int ms4 = 0; unsigned int ms5 = 0; unsigned int S = 0; unsigned int M = 0; unsigned int mS = 0; unsigned int count = 0; void setup() { lcd.begin(16,2); pinMode(start, INPUT); pinMode(strt, INPUT); pinMode(END, INPUT); if(digitalRead(strt) == LOW) { while(true) { lcd.clear(); lcd.setCursor(0,0); lcd.print("Start Laser is"); lcd.setCursor(0,1); lcd.print(" not working"); delay(2500); lcd.clear(); lcd.setCursor(0,0); lcd.print("Please align the"); lcd.setCursor(0,1); lcd.print("lasers properly"); delay(2500); lcd.clear(); lcd.setCursor(0,0); lcd.print("and press reset."); delay(2500); } } if(digitalRead(END) == LOW) { while(true) { lcd.clear(); lcd.setCursor(0,0); lcd.print("All 5 lasers"); lcd.setCursor(0,1); lcd.print("are misaligned"); delay(2500); lcd.clear(); lcd.setCursor(0,0); lcd.print("Please align the"); lcd.setCursor(0,1); lcd.print("lasers properly"); delay(2500); lcd.clear(); lcd.setCursor(0,0); lcd.print("and press reset."); delay(2500); } } lcd.clear(); lcd.setCursor(0,0); lcd.print("-System Standby-"); lcd.setCursor(0,1); lcd.print("Press Start btn"); if(digitalRead(start) == LOW) { while(x) { if(digitalRead(start) == HIGH) { x = false; } } } lcd.clear(); lcd.setCursor(0,0); lcd.print("System is ready"); lcd.setCursor(0,1); lcd.print("----------------"); while(y) { if(digitalRead(strt) == LOW) { y = false; } } lcd.clear(); lcd.setCursor(0,0); lcd.print("Time is being"); lcd.setCursor(0,1); lcd.print("Calculated...."); mS = 12; } void loop() { delay(1); mS = mS + 1; if(mS==1000) { mS=0; S = S+1; } if(S==60) { S=0; M = M+1; } if(digitalRead(END) == LOW) {