help about code frequency generator with attiny25

hello everyone

i used attiny25 to frequency generator from 500 to 1000hz by read ADC pot 5k

it worked , frequency OK . But i want to Pin 3 OFF when read value Pot < 1volt and ON when read value Pot >1 volt .
Pin 1 will blink when work
how to change code ?

This is code

long analogvalue;

void setup() {
TCCR0B = 0;
TCCR0B = (1<<CS01); // /8 Prescaling
TCCR0A = 0;
TCCR0A = (1<<COM0B0) | (1<<WGM01); // toggle OC0B on compare match, CTC Mode 2
pinMode (0, OUTPUT); // Pin PWM generator frequency
pinMode (3, OUTPUT); // Pin Start/stop
pinMode (1, OUTPUT); // Pin Led status
pinMode (A1, INPUT); // Pin read ADC POT 5k
pinMode (A2, INPUT); // Pin read value power 12 or 24v

} // end of setup

void loop() {
analogvalue = analogRead(A1);
analogvalue = map(analogvalue, 0, 1023, 61, 124); //map pot to 500Hz to 1000Hz
OCR0A = analogvalue;
}

try "if (...) { ... } else { ... }"

zwieblum:
try “if (…) { … } else { … }”

bellow OCR0A = analogvalue;?

Wherever you like - just keep it below the "analogvalue=map(...)" line