#include "HX711.
h" //memasukan library HX711
const int DOUT = 2;
const int CLK= 3;
HX711 scale (DOUT,CLK);
const int DOUTX = 3;
const int CLKX= 4;
HX711 scalex (DOUT,CLK);
float calibration_factor = 7050; //-7050 worked for my 440lb max scale setup
float calibration_factorx = 7050;
float units;
float ounces;
float unitsx;
float ouncesx;
void setup() {
[Link](38400);
delay(100);
scale.set_scale();
[Link](); //Reset the scale to 0
scalex.set_scale();
[Link]();
void loop() {
scale.set_scale(calibration_factor); //Adjust to this calibration factor
[Link]("Sensor 1: ");
units = scale.get_units(), 10;
units = units/18.4*143;//gram
[Link](units,3);
[Link](" grams ");
scalex.set_scale(calibration_factorx); //Adjust to this calibration factor
[Link]("Sensor 2: ");
unitsx = scalex.get_units(), 10;
unitsx = unitsx/18.4*143;
[Link](unitsx,3);
[Link](" grams");
[Link]();