from machine import Pin
from hx711 import HX711
import time
if __name__ == '__main__':
# pin18 = Pin(18,Pin.IN,Pin.PULL_DOWN)
hx711 = HX711(d_out=18, pd_sck=19)
while True:
weight = hx711.read()
print("Weight: {}g".format(weight))
pass