Using temp senor to control LED

I keep getting these errors:

In function ‘void loop()’:
error: ‘getVoltage’ was not declared in this scope
error: ‘pin’ was not declared in this scope
error: return-statement with a value, in function returning ‘void’ [-fpermissive] error: ‘else’ without a previous ‘if’

I was trying tio design a project that Blinks an LED when the temperature of a temperature sensor is at or below room temperature for more than 5 seconds and if the temperature exceeds room temperature for more than 5 seconds, the LED will turn off.

Code:

const int BLED = 9;
const int TEMP = 0;

const int LOWER=70;
const int HIGHER=71;

int val = 0;

void setup()
{
Serial.begin(9600);
pinMode(BLED, OUTPUT);
}

void loop()
{
{
float voltage, degreesC, degreesF;
voltage = getVoltage(val);
degreesC= (voltage -0.5) * 100;
degreesF= degreesC * (9/5) + 32;

Serial.print("voltage: “);
Serial.print(voltage);
Serial.print(” deg C: “);
Serial.print(degreesC);
Serial.print(” deg F: ");
Serial.print(degreesF);

delay(1000);
}
float getVoltage(int pin);
val = analogRead(TEMP);
{
return (analogRead(pin) * 0.004882814);
}

if (val >= LOWER);
{
delay(5000);
digitalWrite(BLED, HIGH);
delay(500);
digitalWrite(BLED, LOW);
delay(500);
}

if (val < HIGHER)
{
delay(5000);
digitalWrite(BLED, LOW);
}
}

(deleted)