#include "HX711.h"

HX711 scale;
const int redLED = 2;
void setup() {
  Serial.begin(9600);
  Serial.println("Initializing the scale");
  scale.begin(A1, A0);
  scale.set_scale(420);
  pinMode(redLED, OUTPUT);
}

void loop() {
  float weight = scale.get_units(1);
  Serial.println(weight);
  if (weight <= 25)
  {
    digitalWrite(redLED, LOW);
  }
  else
  {
    digitalWrite(redLED, HIGH);
    tone(8, 450, 700);
  }
  delay(1000);


}