Serial.begin(9600);
Belongs in setup() (done once) not loop() (done over and over).
while (acc > 10) digitalWrite(LED1, HIGH); //this value can be upto 1023 (this is the nalog input converted to digital signal)
while (acc < 1) digitalWrite(LED1, HIGH);
while (therm > 10) digitalWrite(LED1, HIGH);
while (therm < 1) digitalWrite(LED1, HIGH);
Absolutely, positively not. If acc is greater than 10, the while loop will never end. If acc is less than 1, the while loop will never end.
These should be if statements, not while statements.
if (delay1 < 3000) ;
If delay1 is less than 3000, do nothing (that's what the ; on the end means). Otherwise, do nothing. So, why bother testing?
if (button == HIGH) ;
Another do nothing test. And, 9 will never equal HIGH. Somewhere, you probably want to read the state of the pin named in button (which is a crappy name for a variable holding a pin number). If you used meaningful names, you would know not to compare buttonPin to HIGH. And, since buttons are for shirts, switchPin is even better as a name.