/*
Forum: https://forum.arduino.cc/t/hx711-an-nano-kein-anzeigewert/1373069/4
Wokwi: https://wokwi.com/projects/428128285794990081
2025/04/13
ec2021
*/
#include "HX711.h"
// HX711 circuit wiring
const int LOADCELL_DOUT_PIN = 8;
const int LOADCELL_SCK_PIN = 9;
HX711 scale;
void setup() {
Serial.begin(9600);
scale.begin(LOADCELL_DOUT_PIN, LOADCELL_SCK_PIN);
}
void loop() {
if (scale.is_ready()) {
long reading = scale.read();
Serial.print("HX711 reading: ");
Serial.println(reading);
} else {
Serial.println("HX711 not found.");
}
delay(1000);
}