#include //Download it here: https://electronoobs.com/eng_arduino_hx711.php const byte hx711_data_pin = 3; const byte hx711_clock_pin = 2; Q2HX711 hx711(hx711_data_pin, hx711_clock_pin); void setup() { Serial.begin(9600); } void loop() { Serial.println(hx711.read()/100.0); delay(500); } //Variables /////////Change here with your calibrated mass//////////// float y1 = 2831.0; // calibrated mass to be added ////////////////////////////////////////////////////////// long x1 = 0L; long x0 = 0L; float avg_size = 10.0; // amount of averages for each mass measurement float tara = 0; bool tara_pushed = false; bool mode_pushed = false; int mode = 0; float oz_conversion = 0.035274; //////////////////////////////////////////////////////////