Sync codes to the Arduino

I have written a code for a temperature sensor(LM35) and when i upload it to the Arduino it reads not sync. So my question is how to you get the program to sync to the Arduino so that i read it on the serial screen or monitor?

Are you able to upload something simple like a blink sketch?

Have you got this thing plugged into D0/D1? If so try unplugging before uploading.

no it will not work with the blink code. I have tried uploading it before plugging it in also.
It reads "avrdude: stk500_getsync(): not in sync: resp=0x30. Any help will be highly appreciated

With nothing connected to your Arduino board, except the USB cable, trying to upload a simple blink sketch results in the error "avrdude: stk500_getsync(): not in sync: resp=0x30". Correct?

I am getting the same message today. Up until today, it was working OK

Don

My fault. I re-installed Arduino, as I wanted to modify my file structure.
In the process, the port somehow changed to COM1.
I reverted to COM3, and no longer get the error message.

dayo30:
I am getting the same message today. Up until today, it was working OK

Don