Error in DHT22 Arduino Code

Hi,
I am using DHT22 sensor in Arduino UNO board. When i run the code, I am getting an error. From the error, I am not able to understand. I have attached the error below. Kindly assist me where I am wrong.

Error :

Flashing with command:C:/Users/k.b.soundarapandian/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude.exe -CC:/Users/k.b.soundarapandian/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:/Users/KB7155~1.SOU/AppData/Local/Temp/arduino-create-agent297713070/sketch_apr4a.hex:i

avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20

avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20

avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20

avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20

avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30

avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

avrdude done. Thank you.

Mine DHT22 is working fine with SimpleDHT.h Library + UNO + IDE Example. Please, post your full codes with code tags so that we can see what library and what program you are using.

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html

Have you tried to load your UNO with the Blink example in the IDE to see if its is a hardware rather than a software fault?

Thanks.. Tom.. :slight_smile: