# https://wokwi.com/projects/462041613734089729
from machine import Pin
from hx711 import HX711
from utime import sleep
# Start Function
if __name__ == '__main__':
hx =HX711(d_out=16, pd_sck=17)
hx.channel = HX711.CHANNEL_A_128
hx.power_on()
hx.read()
while True:
weight = hx.read()
weight = (weight*5)/2100
print("Weight:",weight)
sleep(1)