Arduino Uno/Pro Mini avrdude programmer not responding.

I have been trying to program my arduino uno and pro mini and with both of them I keep getting the following error.

Programming with: Serial

Flashing with command:/Users/kristinlgray/.arduino-create/arduino/avrdude/6.3.0-arduino9/bin/avrdude -C/Users/kristinlgray/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -P/dev/cu.usbmodem14101 -b57600 -D -Uflash:w:/var/folders/zh/6fdmgvgs7hb412twbtc2sjjw0000gn/T/arduino-create-agent945914764/sketch_oct2a.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:01:35

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is “/Users/kristinlgray/.arduino-create/arduino/avrdude/6.3.0-arduino9/etc/avrdude.conf”

User configuration file is “/Users/kristinlgray/.avrduderc”

User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/cu.usbmodem14101

Using Programmer : arduino

Overriding Baud Rate : 57600

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude: stk500_recv(): programmer is not responding

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

avrdude done. Thank you.

I have tried many different ideas on how to fix it but nothing has worked.

Here is the code:

#include <DHT.h>
#include <SFE_BMP180.h>
#include <Wire.h>
#define ALTITUDE 214.884
#define DHTPIN 7
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
SFE_BMP180 pressure;
int chk;
float hum;
float temp;
void setup()
{
Serial.begin(9600);
Serial.println(“Weather Station”);
dht.begin();
if (pressure.begin())
Serial.println(“BMP180 init success”);
else
{
Serial.println(“BMP180 init fail\n\n”);
while(1); // Pause forever.
}
}
void loop()
{
char status;
double T,P,p0,a;
hum = dht.readHumidity();
temp= dht.readTemperature(true);
Serial.print(“Humidity: “);
Serial.print(hum);
Serial.print(” %, Temp: “);
Serial.print(temp);
Serial.println(” F”);
Serial.println();
Serial.print(“provided altitude: “);
Serial.print(ALTITUDE,0);
Serial.print(” meters, “);
Serial.print(ALTITUDE3.28084,0);
Serial.println(" feet");
status = pressure.startTemperature();
if (status != 0)
{
delay(status);
status = pressure.getTemperature(T);
if (status != 0)
{
Serial.print(“temperature: “);
Serial.print(T,2);
Serial.print(” deg C, “);
Serial.print((9.0/5.0)T+32.0,2);
Serial.println(" deg F");
status = pressure.startPressure(3);
if (status != 0)
{
delay(status);
status = pressure.getPressure(P,T);
if (status != 0)
{
Serial.print("absolute pressure: “);
Serial.print(P,2);
Serial.print(” mb, ");
Serial.print(P
0.0295333727,2);
Serial.println(” inHg”);
p0 = pressure.sealevel(P,ALTITUDE);
Serial.print("relative (sea-level) pressure: “);
Serial.print(p0,2);
Serial.print(” mb, ");
Serial.print(p0
0.0295333727,2);
Serial.println(” inHg”);
a = pressure.altitude(P,p0);
Serial.print(“computed altitude: “);
Serial.print(a,0);
Serial.print(” meters, “);
Serial.print(a3.28084,0);
Serial.print(" feet, ");
Serial.print(a
3.28084*12,0);
Serial.println(” inches”);
}
else Serial.println(“error retrieving pressure measurement\n”);
}
else Serial.println(“error starting pressure measurement\n”);
}
else Serial.println(“error retrieving temperature measurement\n”);
}
else Serial.println(“error starting temperature measurement\n”);
delay(5000);
}

It worked fine a few times and then now I am getting that error message and it won’t upload at all.

I am new to this so any help would be great.

First suggestion is to read some of the posts STUCK at the top of the forum.

I appreciate your efforts so far but some detail is missing or not posted correctly.

A few quick pointers. Try avoid USB 3.0 ports and cables as they are not always the best to use with Arduinos. If you have clones that use the USB micro connector then ensure it has both DATA AND POWER as some of those leads are POWER only. Make sure you have NOTHING connected to the boards whilst uploading.

Sorry I took so long to respond. Thank you for the info. I'm new to this and this is my first post so I might of missed something. Thanks for the info anyway :)

Thank You! I got it working know! Thanks :)

Glad you got it working.

Can you tell us what the issue was so others can benefit from your experience ?

I just decided to try it again and it worked! I don't know why. I've uploaded about 100 codes using the Arduino IDE and the Arduino editor and haven't had a single problem! :)