Variable assignment

how can i set a variable that reads the value of a sensor on the first iteration, and make the variable stay in that value (not changing in every iteration).
Thanks (i'm newbie c:)

Delta_G
i tried and it says: error: 'variable' was not declared in this scope

then it is a global varialble, but i need that the variable stay in the first value that the sensor gives (not changing in every iteration)

the first part it is super simple.

const int sensorpin=A0;
const int blt=analogRead(sensorpin);
void setup(){
Serial.begin(9600);
const int blt=analogRead(sensorpin);
for(int pn=2; pn<9; pn++){
pinMode(pn,OUTPUT);
digitalWrite(pn,LOW);}
}
void loop(){
int sv=analogRead(sensorpin);
Serial.print("Sensor Value: ");
Serial.print(sv);
float v=(sv/1023.0)*5.0;
Serial.print(", Volts: ");
Serial.print(v);
Serial.print(", ÂșC: ");
float t=(v-.5)*100;
Serial.println(t);

if(t<blt){ ...

Thank you!! it works :smiley: