How set sensor data value?

Good day! how to set sensor Data parameters? Like the data only set for example it starts with minimum value of 3 and ends with maximum value of 6 and it will turn on led 1 and if minimum value of 1 and maximum value of 2 turn on led 2 just like that? My actual code for that
float basa= scale.get_units();
if(basa >=4)
{
digitalWrite(led1, HIGH);
}
else if(basa >=2)
{
digitalWrite(led2, HIGH);
}

this code shows that if ever it reaches value of 4 the value of 2 will react also so my question is how set sensor data value like it will only react Value1-Value2 like that thank youvalue?

No, if basa >= 4, the else clause will not be executed, so led2 will stay LOW.