abhisheksuma:
void setup(){
pinMode(exhaustpin, OUTPUT);
digitalWrite(exhaustpin,HIGH );
}
void loop()
{
[...]
if (digitalRead(exhaustpin)==LOW){
[...]
There's your problem. Well, at least one problem, didn't look further after spotting this. This will ALWAYS be false as you set your pin to OUTPUT, HIGH before so never even get to the part where millis() is used.
Also you really should fix the mess of your layout. Just do a ctrl-T in the IDE and everything is suddenly a lot more readable.