Error cannot find 'id' -heat sensor

Hi all,

I’m new to arduino I have never used it and haven’t had much experience with any other programming languages. I have been learning tutorials and simple sketches. I’m trying to program a heart sensor at the minute from one of my tutorials. I keep getting the same error message when I go to compile it. Any help in resolving this would be much appreciated.
Code:
const int sensorPin = A0;
const float baselineTemp = 20.0;
void setup(){
Serial.begin(9600); // open a serial port
for (int pinNumber = 2; pinNumber < 5; pinNumber++){
pinMode(pinNumber, OUTPUT);
digitalWrite(pinNumber, LOW);
}
}
void loop(){
int sensorVal = analogRead(sensorPin);
Serial.print("Sensor Value: ");

//convert the ADC readinng to voltage
float voltage = (sensorVal/1024.0) * 5.0;
Serial.print(", Volts: “);
Serial.print(voltage);
Serial.print(”, degrees C: ");
// convert the voltage to temperature in degrees
float temperature = (voltage - .5) * 100;
Serial.println(temperature);
if(temperature < baselineTemp){
digitalWrite (2, LOW);
digitalWrite (3, LOW);
digitalWrite (4, LOW);
}else if(temperature >= baselineTemp+4 && temperature < baselineTemp+4){
digitalWrite(2, HIGH);
digitalWrite(3, LOW);
digitalWrite(4, LOW);
}else if(temperature >= baselineTemp+4 && temperature < baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
}else if(temperature >= baselineTemp+6){
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
}
delay(1);
}

Error message:
Arduino: 1.6.4 (Windows 8.1), Board: “Arduino Uno”

collect2.exe: fatal error: cannot find ‘ld’
compilation terminated.
Error compiling.

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

That does not seem to be a problem caused by your code.

I would try re-installing the Arduino IDE - better still go back to to version 1.5.6

...R

Thanks for the reply I will look into that! :)