#include <HX711.h>

const int ld_cell = 14;
const int ld_sck = 2;
HX711 scale;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  scale.begin(ld_cell,ld_sck);
}

void loop() {
  if (scale.is_ready())
  {
    scale.set_scale();
    Serial.println("Tare_remove_weights");
    delay(5000);
    scale.tare();
    Serial.println("Tare done");
    Serial.println("now put weight");
    delay(5000);
    long reading = scale.get_units(10);
    Serial.println(reading/420.0);
  }
  delay(10); // this speeds up the simulation
}