dc motor speed control via load cell

hi,this is my first post and my first arduino project.
i want to control the speed (only) of a 12v dc motor depending on data coming from the hx711amplifier(values showing grams weighing ( from -5 to 710).
i will use the motor to feed in the product fast in the beginning to fill up fast,and slow in the end to be
more accurate , than stop when desired weight is reached or maybe surpassed.
for exemple:
if (-5<weight<600) speed value = 255(max) // to fill up fast.
if(599<weight<695) speed value is 100 // slows the speed to get more accurate final weight.
if(weight =or>700) motor stop
am using:arduino uno rev3, l298n driver, load cell+hx711, lcd 16*02i2c, (and a potentiometer for test only)
-i managed to run the load cell and printing the values to the lcd with no problems.
-i also managed to control the speed of the dc motor using a potentiometer (potentiometer is for test
only)
the probleme is when i tried to merge the code for the load cell+the lcd with the code for the
potentiometer+the l298n and replace the potentiometer with the load cell i didn’t succeed .
with the potentiometer it was easy , feeding the l298n ena1 with data from potentiometer data out

pin(A0) like so:

void TurnMotorA(){ //We create a function which control the direction and speed
  digitalWrite(in1, LOW); //Switch between this HIGH and LOW to change direction
  digitalWrite(in2, HIGH);
  speed1 = analogRead(A0);
  speed1 = speed1*0.2492668622; //We read the analog value from the potentiometer calibrate it
  analogWrite(ConA,speed1);// Then inject it to our motor

now, i think there is 2 options:
-controlling the motor via the hx711 data pins.(potentiometer method) ,and am asking you how to do
that.
-or controlling the motor directly form the data of the serial monitor which showing the values i want to
use to control the motor.
i just want you to help me with the easiest method.thank you in advance

ps:dont worry about pin adresses if you want to show me some code i can reallocate them if needed.

Post the code that displays weight.
There are at least a dozen MCU boards named Arduino, which ONE are you using?

hello and thank you a lot for your response.
load cell code.

#include "Arduino.h"
#include "HX711.h"

//#define RST 4
#define DOUT  5
#define CLK  4
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x3F,16,2);

// Create our LoadCell object
HX711 scale(DOUT, CLK);

void setup() {
  Serial.begin(9600);
 lcd.begin();
  // Print a message to the LCD.
  lcd.backlight();

  scale.set_scale();
  scale.tare();  //Reset the scale to 0
}

void loop() {
  //Adjust to this calibration factor
  scale.set_scale(-226.0);

  // Read an average of X readings
    float grams = scale.get_units(10);

    Serial.print(grams);
  Serial.println(" ");

 lcd.setCursor(0,0);
  lcd.print("Gram:");
  lcd.print(grams);
  
  

  

  
}

arduino bord: is arduino uno rev3 and there is a picture of it

hi,if you need any other informations or the other codes i use i can provide them,thanks.

sir i want to control led blub with loadcell can you help in coading