From reply #8
void otoac()
{
long duration, distance;
while(dugme==1)
{
int distanceR = 0;
int distanceL = 0;
delay(40);
if(distance<=24)
What is the value of "distance" in that "if"?
It was this simple btw.
It (whatever " it" is) was never that simple.