hello! my name is klv_sai
I am working on one project where we used Arduino as automation platform, there I met with a problem in programming and am unable to get out of it. please help me in resolving it...
the problem is in looping I used "else if" looping but it is not working like..
I wrote program as below:
if (AnalogValue>459)
{
do statement 1;
}
else if (220<AnalogValue<=459)
{
do statement 2;
}
else if (123<AnalogVlaue<=220)
{
do statement 3;
}
.
.
.
else
do statement n;
but the program is not running well it is not going through all the condition for every analog value lessthan 459 it is going to do statement 2;even though the analog value is less than 220
can you please show me a way to solve it...