Programmer is not responding

Ok. I've been trying to figure out what is wrong when I'm uploading the code to the Arduino and it keeps giving me this error:

Arduino: 1.8.10 (Mac OS X), Board: "Arduino/Genuino Uno"

Sketch uses 5472 bytes (16%) of program storage space. Maximum is 32256 bytes. Global variables use 473 bytes (23%) of dynamic memory, leaving 1575 bytes for local variables. Maximum is 2048 bytes. 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 Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

The board is on Arduino/Genuino Uno, There is only one port called /dev/cu.Bluetooth-Incoming-Port, and the programmer is AVRISP mkll. My computer is a macbook mid 2012 if that helps. My firewall is off in case that interferes with the upload. Overall, I'm having a tough time figuring out what could be causing this error. It would be helpful in anyone could figure out what I'm doing wrong.

Also here’s what I’m trying to upload if it helps

#include <HX711.h>

/*
Example using the SparkFun HX711 breakout board with a scale
By: Nathan Seidle
SparkFun Electronics
Date: November 19th, 2014
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).

This is the calibration sketch. Use it to determine the calibration_factor that the main example uses. It also
outputs the zero_factor useful for projects that have a permanent mass on the scale in between power cycles.

Setup your scale and start the sketch WITHOUT a weight on the scale
Once readings are displayed place the weight on the scale
Press +/- or a/z to adjust the calibration_factor until the output readings match the known weight
Use this calibration_factor on the example sketch

This example assumes pounds (lbs). If you prefer kilograms, change the Serial.print(" lbs"); line to kg. The
calibration factor will be significantly different but it will be linearly related to lbs (1 lbs = 0.453592 kg).

Your calibration factor may be very positive or very negative. It all depends on the setup of your scale system
and the direction the sensors deflect from zero state
This example code uses bogde’s excellent library: GitHub - bogde/HX711: An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
bogde’s library is released under a GNU GENERAL PUBLIC LICENSE
Arduino pin 2 → HX711 CLK
3 → DOUT
5V → VCC
GND → GND

Most any pin on the Arduino Uno will be compatible with DOUT/CLK.

The HX711 board can be powered from 2.7V to 5V so the Arduino 5V power should be fine.

*/

// Example using the SparkFun HX711 breakout board with a scale
//By: Nathan Seidle
//SparkFun Electronics
//Date: November 19th, 2014
//License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).

//This is the calibration sketch. Use it to determine the calibration_factor that the main example uses. It also
//outputs the zero_factor useful for projects that have a permanent mass on the scale in between power cycles.

//Setup your scale and start the sketch WITHOUT a weight on the scale
//Once readings are displayed place the weight on the scale
//Press +/- or a/z to adjust the calibration_factor until the output readings match the known weight
//Use this calibration_factor on the example sketch

//This example assumes pounds (lbs). If you prefer kilograms, change the Serial.print(" lbs"); line to kg. The
//calibration factor will be significantly different but it will be linearly related to lbs (1 lbs = 0.453592 kg).

//Your calibration factor may be very positive or very negative. It all depends on the setup of your scale system
//and the direction the sensors deflect from zero state
//This example code uses bogde’s excellent library: GitHub - bogde/HX711: An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
//bogde’s library is released under a GNU GENERAL PUBLIC LICENSE
// Arduino pin 2 → HX711 CLK

#include “HX711.h”

#define DOUT 3
#define CLK 2

int motorPin1 = 5;
int motorPin2 = 6;

HX711 scale;

float calibration_factor = -7050; //-7050 worked for my 440lb max scale setup

void setup() {
Serial.begin(9600);
Serial.println(“HX711 calibration sketch”);
Serial.println(“Remove all weight from scale”);
Serial.println(“After readings begin, place known weight on scale”);
Serial.println(“Press + or a to increase calibration factor”);
Serial.println(“Press - or z to decrease calibration factor”);

scale.begin(DOUT, CLK);
scale.set_scale();
scale.tare(); //Reset the scale to 0

pinMode (motorPin1,OUTPUT);
pinMode (motorPin2, OUTPUT);

long zero_factor = scale.read_average(); //Get a baseline reading
Serial.print("Zero factor: "); //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
Serial.println(zero_factor);
}

void loop()
{

// if (scale.get_units() != 0)
// {
scale.set_scale(calibration_factor); //Adjust to this calibration factor

Serial.print(“Reading: “);
Serial.print(scale.get_units(), 1);
Serial.print(” lbs”); //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
Serial.print(" calibration_factor: ");
Serial.print(calibration_factor);
Serial.println( );};

//digitalWrite(motorPin1, LOW);
//digitalWrite(motorPin2, HIGH);
//}
/*else
{
digitalWrite(motorPin1, LOW);
digitalWrite(motorPin2, LOW);
}
}

/*scale.set_scale(calibration_factor); //Adjust to this calibration factor

Serial.print(“Reading: “);
Serial.print(scale.get_units(), 1);
Serial.print(” lbs”); //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
Serial.print(" calibration_factor: ");
Serial.print(calibration_factor);
Serial.println();

/* if(Serial.available())
{
char temp = Serial.read();
if(temp == ‘+’ || temp == ‘a’)
calibration_factor += 10;
else if(temp == ‘-’ || temp == ‘z’)
calibration_factor -= 10;
}
}

#include “HX711.h”

#define DOUT 3
#define CLK 2

//float calibration_factor = -7050; //-7050 worked for my 440lb max scale setup

/*void setup() {
Serial.begin(9600);
Serial.println(“HX711 calibration sketch”);
Serial.println(“Remove all weight from scale”);
Serial.println(“After readings begin, place known weight on scale”);
Serial.println(“Press + or a to increase calibration factor”);
Serial.println(“Press - or z to decrease calibration factor”);

scale.begin(DOUT, CLK);
scale.set_scale();
scale.tare(); //Reset the scale to 0

long zero_factor = scale.read_average(); //Get a baseline reading
Serial.print("Zero factor: "); //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
Serial.println(zero_factor);
}

void loop() {

scale.set_scale(calibration_factor); //Adjust to this calibration factor

Serial.print(“Reading: “);
Serial.print(scale.get_units(), 1);
Serial.print(” lbs”); //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
Serial.print(" calibration_factor: ");
Serial.print(calibration_factor);
Serial.println();

if(Serial.available())
{
char temp = Serial.read();
if(temp == ‘+’ || temp == ‘a’)
calibration_factor += 10;
else if(temp == ‘-’ || temp == ‘z’)
calibration_factor -= 10;
}

Can you upload a simple sketch? Probably not as this output looks like a missing boot loader or something failed in the USB string. I just had a problem with a new board where there was a manufacturering defect and the Tx line to the Atmega 16AU was not connected.