user63213: 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 you

user10285: For example:
float basa = scale.get_units();

digitalWrite(led1, LOW);
digitalWrite(led2, LOW);

if( basa >= 2 && basa < 4 )
{ 
  digitalWrite(led2, HIGH);
}

if( basa >= 4 )
{ 
  digitalWrite(led1, HIGH);
}

EDIT: as suggested by @chrisl (see comments)
If understand you problem correctly, you try to light up 2 LEDs according to the value you read from a scale. IMHO you want to assign three intervals (ranges) like so:
(-INF, 2) : none of the LEDs is switched on
[2, 4)    : only LED 2 is switched on
[4, +INF) : only LED 1 is switched on


[x or x] means the x belongs to the interval. 
(x or x) means the x does not belong to the interval. 
+INF and -INF are the positive or negative infinity. 

My code does the following:
I use the observation, that the intervals do not intersect and the union of the intervals are the complete real number space. (Although your scale has a more narrow range: (0-?kg). The program can handle a wider range compared to the the scale, so it is not a problem.) 
If the first condition (-INF, 2) is true, none of the others would be and we can be sure that the LEDs I switched off with the digitalWrite(ledX, LOW);
 statements will stay off. If the value is in the range of [2, 4) I switch on LED2 and can be sure that the other LED stays off because the condition basa >= 4 can not be true. And if the value is in the range of  [4, +INF) I switch on LED1 and can be sure that LED 2 has not been switched on because the condition basa >= 2 && basa < 4 can not be true.

63213: <p>Good day! How to set sensor Data parameters? </p>

<p>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?</p>

<p>My actual code for that:</p>

<pre><code>float basa = scale.get_units();
if( basa &gt;= 4 )
{ 
  digitalWrite(led1, HIGH);
}
else if( basa &gt;= 2 )
{ 
  digitalWrite(led2, HIGH);
}
</code></pre>

<p>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.</p>

<p>thank you</p>
 10285: <p>For example:</p>

<pre><code>float basa = scale.get_units();

digitalWrite(led1, LOW);
digitalWrite(led2, LOW);

if( basa &gt;= 2 &amp;&amp; basa &lt; 4 )
{ 
  digitalWrite(led2, HIGH);
}

if( basa &gt;= 4 )
{ 
  digitalWrite(led1, HIGH);
}
</code></pre>

<p><strong>EDIT: as suggested by @chrisl (see comments)</strong></p>

<p>If understand you problem correctly, you try to light up 2 LEDs according to the value you read from a scale. IMHO you want to assign three intervals (ranges) like so:</p>

<pre><code>(-INF, 2) : none of the LEDs is switched on
[2, 4)    : only LED 2 is switched on
[4, +INF) : only LED 1 is switched on
</code></pre>

<ul>
<li><code>[x</code> or <code>x]</code> means the x belongs to the interval. </li>
<li><code>(x</code> or <code>x)</code> means the x does not belong to the interval. </li>
<li><code>+INF</code> and <code>-INF</code> are the positive or negative infinity. </li>
</ul>

<p>My code does the following:</p>

<p>I use the observation, that the intervals do not intersect and the union of the intervals are the complete real number space. (Although your scale has a more narrow range: (0-?kg). The program can handle a wider range compared to the the scale, so it is not a problem.) </p>

<p>If the first condition <code>(-INF, 2)</code> is <code>true</code>, none of the others would be and we can be sure that the LEDs I switched off with the <code>digitalWrite(ledX, LOW);
</code> statements will stay off. If the value is in the range of <code>[2, 4)</code> I switch on LED2 and can be sure that the other LED stays off because the condition <code>basa &gt;= 4</code> can not be <code>true</code>. And if the value is in the range of  <code>[4, +INF)</code> I switch on LED1 and can be sure that LED 2 has not been switched on because the condition <code>basa &gt;= 2 &amp;&amp; basa &lt; 4</code> can not be <code>true</code>.</p>
