#include "HX711.h"
const int a0=16;
const int a1=4;
HX711 scale;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
scale.begin(a0, a1);
}
void loop() {
if(scale.is_ready()){
scale.set_scale();
Serial.println("Remove weights...");
delay(5000);
Serial.println("tare done...");
Serial.println("Now put weight..");
delay(5000);
long reading=scale.get_units(10);
Serial.println(reading/224);
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}