Is my arduino dead?

I was working on my project to control lights and fans, initially it was working, but when I switch my second relay something short circuited. Now my arduino uno is not taking any sketch from my computer, and the led pin13 is off. also the tx and rx leds are not working when I connect them to my computer.

But the power led is On and I can still power other devices through UNO. so can anyone tell me what happened to my arduino it shows this error while uploading my sketch.

avrdude: stk500_getsync(): not in sync: resp=0x00

We need to know how it was wired up. Also post the code.

Weedpharma

int pin1 = A1;
int pin2 = 6;
int pin3 = 7;
int pin4 = 9;
int pin5 = 10;
int var;
boolean buttonstate = 0;
boolean lastbuttonstate = 0;
boolean st;
boolean feedback[4] = {0,0,0,0};
void setup()
{
  Serial.begin(9600);
  pinMode(A1,INPUT);
  pinMode(6,OUTPUT); 
  pinMode(7,OUTPUT); 
  pinMode(9,OUTPUT); 
  pinMode(10,OUTPUT); 
}

void loop()
{
  Serial.available();
  var = Serial.read();
  buttonstate = digitalRead(A1);
  if(var== '1'){
    digitalWrite(6,HIGH);
   //Serial.println(digitalRead(pin2));
  }
  if(var== '2'){
    digitalWrite(6,LOW);
    //Serial.println(digitalRead(pin2));  
  }
   if(var== '3'){
    digitalWrite(7,HIGH);
   //Serial.println(digitalRead(pin2));
  }
  if(var== '4'){
    digitalWrite(7,LOW);
    //Serial.println(digitalRead(pin2));  
  }
   if(var== '5'){
    digitalWrite(9,HIGH);
   //Serial.println(digitalRead(pin2));
  }
  if(var== '6'){
    digitalWrite(9,LOW);
    //Serial.println(digitalRead(pin2));  
  }
   if(var== '7'){
    digitalWrite(10,HIGH);
   //Serial.println(digitalRead(pin2));
  }
  if(var== '8'){
    digitalWrite(10,LOW);
    //Serial.println(digitalRead(pin2));  
  }
   
 if(buttonstate != lastbuttonstate){
         st = !digitalRead(pin2);
         digitalWrite(5,st);
   
  }
  lastbuttonstate = buttonstate;

delay(200);

reading();
sending();
}

void reading(){
  feedback[0] = digitalRead(pin2);
  feedback[1] = digitalRead(pin3);
  feedback[2] = digitalRead(pin4);
  feedback[3] = digitalRead(pin5);
}

void sending(){
  
  Serial.print('#');
  
  for(int k=0; k<4; k++)
  {
    Serial.print(feedback[k]);
    Serial.print('+');
  }
  Serial.print('~');
  Serial.println();
  delay(10);


}

this is my code, it works well with my relays, it got shot circuit when I connected relay to AC supply, I dont know what went wrong, I dont have any Image of the connection, as I called a technician for that
and he did changed few things.

right now I just like to know how to check if my arduino is dead or not, cause its not working after that experiment as I explained

What is about leds? L should blinks 3x after reset and Tx should blink at every attempt to start upload sketch at least.

well that led is not working anymore, but I just removed my processor and connect my tx(pin1) to rx(pin0), I am getting an echo. I guess my board is fine. Anything else I should check

How were you driving the relays? did you have a fly back diode? Do you have a link to the relay you used so we can see the specification. It may be that you connected the relay direct to the board and this pulled too much current from the IO pin and fried it. Hopefully we can get a resolution worked out for you. This may involve fitting a new atmega328 to the board to get it up and running.

yes, I used the fly back diode. this is the link for my relay. http://www.electronicoscaldas.com/datasheet/JQC-3FC(T73)DC12V_JIHJIK.pdf