Compile problem

Before 1 hour,I downloaded arduino Ide 1.8.9 (I had 1.5) and I get this error(now and every time I download a new version) :

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

I tried many times to compile it,I restart my laptop ,but nothing ...
Do you know where the problem is ?

(deleted)

Arduino Nano
Arduino IDE 1.8.9
Project: DHT11 sensor 4 pinouts (left side:vcc,right side :GND,middle:data)
Before 2 hours I had the version 1.5 and the sensor worked good ,but now not compile and I see this error message:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x60
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x9e

Code:

#include <dht.h>
#define dataPin 3 
dht DHT; 
void setup() 
{
  Serial.begin(9600);
}
void loop() {
  float readData = DHT.read11(dataPin); 
  float t = DHT.temperature; 
  float h = DHT.humidity; 

  Serial.print("Temperature = ");
  Serial.print(t);
  Serial.print(" *C ");
  Serial.print("    Humidity = ");
  Serial.print(h);
  Serial.println(" % ");

  delay(2000); 
}

arduiNICK:
but now not compile and I see this error message:

Sure its not compiling ?

Those messages normally occur after the compile has finished and its trying to upload the compiled program.

You can check the compile only by slecting the compile only option that is the tick mark next to the upload button.

Sorry,it compiles(but takes many seconds for this small program) and I see this error :

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

and it says for upload problem

That problem has nothing to do with the code or the compiler. It is failing to find the board to do the upload. Either you have selected the wrong type of board, or selected the wrong serial port to talk to the board, or failed to install the proper serial port driver, or have a bad board, or a bad cable, or something wired to the board that interferes with serial communication, or...

Regards,
Ray L.

I checked that I chose arduino NANO , ATmega328P , COM3 , Programmer: ArduinoISP

arduiNICK:
I checked that I chose arduino NANO , ATmega328P , COM3 , Programmer: ArduinoISP

Did uploads work before ?

Are you able to provide any details about the device (computer ?) that you are using for uplaods ?

(deleted)

Ok...I downloaded version 1.8.5 and it works fine
Thanks for your time!!

(deleted)