def main():
    GPIO.setmode(GPIO.BCM)
    hx = hx711.HX711(dout_pin=5, pd_sck_pin=6)
    zero_the_scale(hx)
    calibrate_scale(hx)
    (tare_weight, total_weight) = get_tare_and_full_weight(hx)
    plot_reading(hx, tare_weight, (total_weight - tare_weight))
def main():
    GPIO.setmode(GPIO.BCM)
    hx = hx711.HX711(dout_pin=5, pd_sck_pin=6)
    zero_the_scale(hx)
    calibrate_scale(hx)
    (tare_weight, total_weight) = get_tare_and_full_weight(hx)
    plot_reading(hx, tare_weight, (total_weight - tare_weight))