An error occured while merging LDR and LM35

I don't know what's wrong with my code or my wiring. I need to get output from my LDR and LM35 sensor. This is my code :

int sensorReading, led, tempPin=1;//analog pin reading
float temp;
void setup()
void loop()

void bacaTemp(){
  temp = analogRead(tempPin);
  temp = temp * 0.48828125;
  Serial.print("Temperatur : ");

void bacaLDR(){
  sensorReading=analogRead(0);  //get analog reading
  led=map(sensorReading, 0, 1023, 255, 0);
  analogWrite(6, led);
  Serial.print("Sensor : ");
  Serial.print("LED : ");

When i join both of them, the output of LM35 was random, but when i deleted code of reading LDR sensor LM35 give the right output. Can anyone help me?