Cannot upload code to Arduino UNO R3

I try to connect my WiFi Module (ESP-8266 model ESP-01S) to my Arduino UNO R3 and try to upload any code to Arduino, it didn't work Here's error.

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Thiramate Akkachairi\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM8
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x01
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x01

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

and here's my device.(Full Image Click Here) |500x281

But if disconnect ESP8266 from my Arduino UNO R3, it can upload normally. No any error

What should I do?

Thanks

But if disconnect ESP8266 from my Arduino UNO R3, it's work fine as normal.

You seem to be using pins 0 and 1 to communicate with the ESP8266 but these are used by the Uno to communicate with the PC, including uploading code. Could that be a problem, I wonder ?

Instead of screen shots why not copy and paste the text from the screen here using code tags ?

UKHeliBob: You seem to be using pins 0 and 1 to communicate with the ESP8266 but these are used by the Uno to communicate with the PC, including uploading code. Could that be a problem, I wonder ?

Instead of screen shots why not copy and paste the text from the screen here using code tags ?

Sorry I'm new here and new in Arduino. What should I do to fix this problem?

What should I do to fix this problem?

Unplug the device connected to pins 0 and 1 when you want to upload code.

PaulS: Unplug the device connected to pins 0 and 1 when you want to upload code.

If you don't want to do that, switch to using SoftwareSerial at 9600 baud on a different pair of pins.

When you are debugging code, you will want that hardware serial port pin0+pin1 available. It is so much easier. Trust me.

PaulS: Unplug the device connected to pins 0 and 1 when you want to upload code.

Thank you very much PaulS, Problem Solved.

and Thank you everyone for help