#include "HX711.h"
HX711 scale;
const int LED = 2;
void setup() {
Serial.begin(9600);
Serial.println("Initializing the scale");
scale.begin(A1, A0);
pinMode(LED,OUTPUT);
}
void loop() {
Serial.println(scale.get_units(), 1);
int A = scale.get_units();
if (A > 200) {
digitalWrite(LED,HIGH);
}else{
digitalWrite(LED,LOW);
}
delay(100);
}