#include<HX711.h>;
const int ld_cell=2;
const int ld_sck=4;
HX711 scale;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println(ld_cell,ld_sck);
}
void loop(){
if (scale.is_ready())
{
Serial.print("Tare_remove_weights...");
delay(1000);
scale.tare();
Serial.println("Tare done...");
Serial.println("now put weight...");
delay(1000);
long reading = scale.get_units(10);
Serial.println(reading/419.8);
}
delay(10);
}