#include <LiquidCrystal_I2C.h>
#include <HX711.h>
#define I2C_ADDR    0x27
#define LCD_COLUMNS 16
#define LCD_LINES   2

const int ld_cell = 4;
const int ld_sck = 2;

HX711 scale;


LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  scale.begin(ld_cell, ld_sck);
}  

void loop() {
  // put your main code here, to run repeatedly:
 if(scale.is_ready()){
  scale.set_scale();
  Serial.println("Tare_Remove_Weight...");
  lcd.init();
  lcd.backlight();
  lcd.println("Tare_Remove_Weight...");
  delay(5000);
  scale.tare();
  Serial.println("Tare Done...");
  lcd.init();
  lcd.backlight();
  lcd.println("Tare Done...");
  Serial.println("Now Put Weight...");
  lcd.init();
  lcd.backlight();
  lcd.println("Now Put Weight...");
  delay(5000);
  long reading = scale.get_units(10);
  Serial.println(reading/419.653);
  lcd.init();
  lcd.backlight();
  lcd.setCursor(1,0);
  lcd.println(reading/419.653);lcd.print(" Kg");

  
 }
}