HC-SR04 ultra sonic censor

Hi Guys

I am new to the coding thing and a complete doosh.

So to make a long story short basically what i need is for the arduino to only output on the output pins specified in the code when the HC-SR04 censor senses distance from 15 to 25 not longer or shorter.
So if it detects something shorter than 15 and longer than 25 NO output to be triggered.

Can someone please help with a line of code that will limit detection to be between 15 and 25 only.
Thanks in advance.

This is what I have and it works very well but it detects every thing under 15

const int trigPin = 5;
const int echoPin = 6;
const int remotePin = 3;
const int ledPin = 4;
const int buzzPin = 2;

long duration;
float distance;

void setup()
{
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(remotePin, OUTPUT);
pinMode(ledPin, OUTPUT);
pinMode(buzzPin, OUTPUT);
}

void loop()
{
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15); //More responsive
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);
distance= duration*0.034/2;

//if (distance < 90) //380mm
//if (distance < 80) //330mm
//if (distance < 70) //290mm
//if (distance < 60) //250mm
//if (distance < 50) //210mm
//if (distance < 40)
//if (distance < 30)
//if (distance < 25)
//if (distance < 20)
if (distance < 15) // I think my problem is here
//if (distance < 10)
//if (distance < 9)
{
digitalWrite(remotePin,HIGH);
digitalWrite(ledPin,HIGH);
digitalWrite(buzzPin,HIGH);
delay(1000); //delay for bounce
}
else
{
digitalWrite(remotePin,LOW);
digitalWrite(ledPin,LOW);
digitalWrite(buzzPin,LOW);
}
delay(5); //recycle time
}

Can someone please help with a line of code that will limit detection to be between 15 and 25 only.

if(distance >= 15 && distance <= 25)

That will NOT limit detection to be between 15 and 15. What it will do is limit action taken based on the distance detected being between 15 and 25. You can not limit detection to the range 15 to 25.

You are a star it seem to work Thanx a lot