temperature:12: error: 'sensorPin' was not declared in this scope

int TEMP = 0;

void setup()
{
Serial.begin(9600);
}

void loop()
{
int reading = analogRead(sensorPin); /Error in this line/
float voltage = reading * 5.0;
voltage /=1024.0;
Serial.print(voltage); Serial.println(" volts");
float temperatureC = voltage * 100;
Serial.print(temperatureC); Serial.println(" degrees C")
delay(1000);
}
Please help, thanks in advance

What pin number is the sensor connected to? What number is sensorPin supposed to represent? You have to tell the program that, you can’t expect to just write sensorPin and have it magically know what you meant. You have to create that variable and give it a value. You knew how to do that with the variable TEMP, so why not do it for sensorPin as well?