#include "HX711.h"
const int LOADCELL_DOUT_PIN = 12;
const int LOADCELL_SCK_PIN = 11;
HX711 scale;
void setup() {
Serial.begin(9600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
scale.set_gain(240);
}
void loop() {
long rawValue = scale.read();
float weight = rawValue * 2.381;
Serial.print("Raw Value: ");
Serial.print(rawValue);
Serial.print(", Weight: ");
Serial.print(weight);
Serial.println(" g");
delay(100); // Adjust delay as needed
}