cant program Ardunio uno

hello every body
i upload this command and after that i cant communicate with ardunio board

Serial.print("temperature is"+String(tempVal));
i use this command in loop

and after that i cant upload any sketch on it
when program it this message appear:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xac

i use reset button to reset factory board but it dosent work.also ground reset pin not work
tanx

It looks to me like some incorrect setting. Anyway, can we see the rest of the log? Your code has nothing with the problem.
The reset button just resets the MCU (it's like to reset the computer) nothing more. There is nothing like "factory reset".