what does this error mean (avrdude: stk500_getsync(): not in sync: resp=0x00)

Are you using the same USB cable every time? Try different cables, I had the same issue recently and it turned out to be a bad cable.