Multiple Solenoids triggered by Hall Effect Sensor

Obviously I was trying to tell it, that if the value is between rt1 and rt179 to fire solenoid 1 and 7.

If what value is between rt and rt * 179?

Unless both solenoids are connected to the same pin, you'll need multiple digitalWrite statements.