How can i control DC motor using a Loadcell??

Hi all,

I'm looking for how to control two DC motors according to the force measured by the Loadcell.

For example, if the measured force is over 6,000 and the motor is running, the motor will stop.
If the measured force is over 6,000 and the motor is stationary, then the motor is running at a certain speed.

I can connect DC motors & Loadcell & Arduino & etc but i don't know how to code.

I write here because there isn't any code or data even if I keep searching on the Internet.

Now, Loadcell AMP I have is HX711 and I have a cheap Loadcell and the motors and Arduino Uno.

How can i control DC motor using a Loadcell??
Is there any code or any information I can refer to??

Thanks and have a good day!

Just some if statements is all you need, really. Measure the force, then do with it what you want.

void loop() {
  force = readForce();
  if (force > 6000) stopMotor();
  else runMotor();
}