from machine import Pin, SPI
from hx711 import HX711
import time
hx = HX711(23,22)
calibration = 2380952e-9
while True:
mesure = hx.read(True)
mesure *= calibration
print(f'The weight is {mesure:.2f} Kg.')
time.sleep(3)from machine import Pin, SPI
from hx711 import HX711
import time
hx = HX711(23,22)
calibration = 2380952e-9
while True:
mesure = hx.read(True)
mesure *= calibration
print(f'The weight is {mesure:.2f} Kg.')
time.sleep(3)