Using value of load cell output to control the direction of a servo motor

z = digitalRead((scale.get_units(), 3));

digitalRead() returns HIGH or LOW. Then you check to see if z is between 1.000 and 22.000 or between 22.000 and 30.000. How likely do you think that is?

Steve