LM35 and LDR

i want do an project with an LM35 and LDR to controle the temperature and the light of my room but i don t know why she doesn t work this is the algo:
int ldr=A0;
int lm=A1;
int led1=13;
int led2=12;
int led3=11;
int val=0;
int tm=0;

void setup()
{
pinMode(ldr,INPUT);
pinMode(lm,INPUT);
pinMode(led1,OUTPUT);
pinMode(led2,OUTPUT);
pinMode(led3,OUTPUT);
Serial.begin(9600);
}
void loop()
{
val=analogRead(ldr);
if(val<15)
{digitalWrite(led1,1);
delay(1000);}
tm=analogRead(lm);
float mv = ( val/1024.0)5000;
float cel = mv/10;
float farh = (cel
9)/5 + 32;

Serial.print("TEMPRATURE = ");
Serial.print(cel);
Serial.print("*C");
Serial.println();
delay(1000);
if(tm<30)
{digitalWrite(led2,1);
delay(500);
}
else if(tm>24)
{digitalWrite(led3,1);
delay(500);
}
}

please tell me where is the problem here!!!

You tell us what the problem is. For all we can tell, it works fine! What happens that shouldn't, or what doesn't happen that should?