Finite State Machine Using Switch Statement.

one thing about PLC is that every thing is represented with HIGH and LOW. which really help. with arduino the possibility to represent something as HIGH and LOW and everything in between, WOW now everything i learn from my sensei could finally put to use. He thought me about Fuzzy logic and Sequence step, timing diagram. then he thought me some automation and finally b4 i when to work he thought me about Finite State Machine, although at the time he did not tell me its name just that it is an advance form of Sequence step. but now everything make sense now. So Thank you all for actually making me realize that my sensei had thought me all of this all along. Urm you know suddenly i have the confident in me to actually do any advance work with arduino.
Again i cant stress enough how much I'm Thanking all of you.... thank you thank you thank you ......