Need help with hx711

I’m trying to get my load cell and HX711 to work with a nodeMCU but it keeps reading the same number and doesn’t change when I put weight on the cell. It could be a problem with the code or the wiring.

#include <HX711.h>

HX711 scale(4,0);

void setup() {
    Serial.begin(9600);
    scale.begin(4,0);
}
void loop() {
    Serial.println(scale.read());
    delay(500);
}

GPIO4 (labelled as D2 on theNodeMCU) is an okay pin to use, but GPIO0 (labelled as D3 on the NodeMCU) isn’t such a good choice of pin.

I suspect that in reality you’re getting your GPIO and D pin designations mixed-up.

https://pradeepsinghblog.files.wordpress.com/2016/04/nodemcu_pins.png?w=616

Pete.