calibrating load cell

I am trying trying to calibrate my load cell but the ide keeps on giving me this error. Any help would be much apperciated,

exit status 1
no matching function for call to 'HX711::HX711(int, int)'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


#include <HX711.h>
#define DOUT  3
#define CLK  2
HX711 scale (DOUT ,CLK);

float weight; 
float calibration_factor = 419640; // for me this value works just perfect 419640 
void setup() {
  Serial.println("HX711 calibration sketch");
  Serial.println("Remove all weight from scale");
  Serial.println("After readings begin, place known weight on scale");
  Serial.println("Press + or a to increase calibration factor");
  Serial.println("Press - or z to decrease calibration factor");
  scale.tare(); //Reset the scale to 0
  long zero_factor = scale.read_average(); //Get a baseline reading
  Serial.print("Zero factor: "); //This can be used to remove the need to tare the scale. Useful in permanent scale projects.
void loop() {
  scale.set_scale(calibration_factor); //Adjust to this calibration factor
  Serial.print("Reading: ");
  weight = scale.get_units(5); 
  //Serial.print(scale.get_units(), 2);
 // Serial.print(" lbs"); //Change this to kg and re-adjust the calibration factor if you follow SI units like a sane person
  Serial.print( weight); 
  Serial.print(" Kg");
  Serial.print(" calibration_factor: ");
    char temp =;
    if(temp == '+' || temp == 'a')
      calibration_factor += 10;
    else if(temp == '-' || temp == 'z')
      calibration_factor -= 10;

The HX711 class does not have a constructor overload that takes parameters. Have you looked at the examples that come with the library?

That is one of the examples thats why i was so confused

That is one of the examples thats why i was so confused

Not that I can see looking here: GitHub - bogde/HX711: An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.

See the notes for Release 0.7.1: Releases · bogde/HX711 · GitHub