error complining

so i am trying to do the love o meter project from the arduino starter book which is basically a temp sensor i guess

but i keep getting an error here is the code.

const int sensorPin = A0;
const int 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: “);
Serial.print(sensorVal);
//convert the ADC reading 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+2 &&
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.5 Hourly Build 2015/05/19 05:56 (Windows 7), Board: “Arduino Uno”

Build options changed, rebuilding all

In file included from sketch_may21b.ino:1:0:
sketch_may21b.ino: In function ‘void setup()’:
C:\Users\Admin\Downloads\arduino-nightly-windows (3)\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:44:16: error: expected unqualified-id before numeric constant
#define OUTPUT 0x1
^
sketch_may21b.ino:6:23: note: in expansion of macro ‘OUTPUT’
Error compiling.

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

const int baselineTemp = 20.0;

Does 20.0 look like an int to you? If it does, you need to see an eye doctor.

Why are you NOT using a stable, released version of the IDE? Using nightly build versions is NOT for beginners.

dehsar:
error message:

Arduino: 1.6.5 Hourly Build 2015/05/19 05:56 (Windows 7), Board: "Arduino Uno"

Why do you use a mostly untested, unreliable, "hourly build" version of the Arduino IDE, which is intended for developers an beta testers of the Arduino IDE, instead of a tested and officially relased version?

Seems like you are a real version number junkie who is not satisfied if a software was not updated within the last few hours.

But your mistake is this line:

   pinMode(pinNumber.OUTPUT);

When calling a function that takes two parameters, the two parameters must be seperated with a comma:

   pinMode(pinNumber,OUTPUT);

PaulS:

const int baselineTemp = 20.0;

Does 20.0 look like an int to you? If it does, you need to see an eye doctor.

Why are you NOT using a stable, released version of the IDE? Using nightly build versions is NOT for beginners.

thanks brudda

jurs:
Why do you use a mostly untested, unreliable, "hourly build" version of the Arduino IDE, which is intended for developers an beta testers of the Arduino IDE, instead of a tested and officially relased version?

Seems like you are a real version number junkie who is not satisfied if a software was not updated within the last few hours.

But your mistake is this line:

   pinMode(pinNumber.OUTPUT);

When calling a function that takes two parameters, the two parameters must be seperated with a comma:

   pinMode(pinNumber,OUTPUT);

yup changed that thanks now its working