just nebee help, im lost??

I am trying my best at this , i have temps showing in serial monitor correct, next i want to turn on a led if temp is to low , or to high , per sensor ,

i am doing my best , any help would be great !

[quote]
[color=#7E7E7E]/*[/color]
[color=#7E7E7E]     [/color]
[color=#7E7E7E]*/[/color]

#include <DallasTemperature.h>

DallasTemperature tempSensor1; [color=#7E7E7E]// You may instantiate as many copies as you require.[/color]
DallasTemperature tempSensor2;
DallasTemperature tempSensor3;
[color=#CC6600]void[/color] [color=#CC6600][b]setup[/b][/color]([color=#CC6600]void[/color]) {
 [color=#7E7E7E]// initialize inputs/outputs[/color]
 [color=#7E7E7E]// start serial port[/color]
 [color=#CC6600]Serial[/color].[color=#CC6600]begin[/color](9600);
 tempSensor1.[color=#CC6600]begin[/color](10); [color=#7E7E7E]// Data wire is plugged into port 12 on the Arduino[/color]
 tempSensor2.[color=#CC6600]begin[/color](11);
 tempSensor3.[color=#CC6600]begin[/color](12);
[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"Dallas Temperature IC Control Library 1.0. Miles Burton"[/color]);

[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"Dallas Temperature IC Control Library 1.0. Miles Burton"[/color]);

[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"Dallas Temperature IC Control Library 1.0. Miles Burton"[/color]);
}


[color=#CC6600]void[/color] [color=#CC6600][b]loop[/b][/color]([color=#CC6600]void[/color]) {

   [color=#7E7E7E]// Ask the library whether the device is valid[/color]
   [color=#CC6600]switch[/color](tempSensor1.isValid())
      [color=#CC6600]switch[/color](tempSensor2.isValid())
         [color=#CC6600]switch[/color](tempSensor3.isValid())
   {
       [color=#CC6600]case[/color] 1:
           [color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"Invalid CRC"[/color]);
                 tempSensor1.[color=#CC6600]reset[/color](); [color=#7E7E7E]// Attempts to redetect IC[/color]
                 tempSensor2.[color=#CC6600]reset[/color](); 
                 tempSensor3.[color=#CC6600]reset[/color](); 
           [color=#CC6600]return[/color];
     
       [color=#CC6600]case[/color] 2:
           [color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"Not a valid device"[/color]);
                 tempSensor1.[color=#CC6600]reset[/color](); [color=#7E7E7E]// Attempts to redetect IC[/color]
                 tempSensor2.[color=#CC6600]reset[/color]();
                 tempSensor3.[color=#CC6600]reset[/color]();
           [color=#CC6600]return[/color];
   }

 [color=#7E7E7E]// getTemperature returns a float. [/color]
 [color=#CC6600]Serial[/color].[color=#CC6600]print[/color](DallasTemperature::toFahrenheit(tempSensor1.getTemperature()));[color=#CC6600]Serial[/color].[color=#CC6600]print[/color]([color=#006699]"F 1"[/color]  );[color=#CC6600]delay[/color] (1000);[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"\t"[/color]);
 
 [color=#CC6600]Serial[/color].[color=#CC6600]print[/color](DallasTemperature::toFahrenheit(tempSensor2.getTemperature()));[color=#CC6600]Serial[/color].[color=#CC6600]print[/color]([color=#006699]"F 2"[/color]  );[color=#CC6600]delay[/color] (1000);[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"\t"[/color]);
 
 [color=#CC6600]Serial[/color].[color=#CC6600]print[/color](DallasTemperature::toFahrenheit(tempSensor3.getTemperature()));[color=#CC6600]Serial[/color].[color=#CC6600]print[/color]([color=#006699]"F 3"[/color]  );[color=#CC6600]delay[/color] (1000);[color=#CC6600]Serial[/color].[color=#CC6600]println[/color]([color=#006699]"\t"[/color]);  
 
[color=#CC6600]delay[/color] (2000);  
}

[/quote]

Hi, Can you edit that last post (click modify) and either change the code and /code (in brackets) to quote, or better yet just copy your code and paste it between the square code brackets. That is don't format it for colour as it is almost unreadable as posted. Thanks

I am trying my best at all this , i want to be able to turn a Led , on at a certain temp , ideas ???

/*

*/

#include <DallasTemperature.h>

DallasTemperature tempSensor1;
DallasTemperature tempSensor2;
DallasTemperature tempSensor3;
void setup(void) {
// initialize inputs/outputs
// start serial port
Serial.begin(9600);
tempSensor1.begin(10); // Data wire is plugged into port 10 on the Arduino
tempSensor2.begin(11);// Data wire is plugged into port 11 on the Arduino
tempSensor3.begin(12);// Data wire is plugged into port 12 on the Arduino
Serial.println(“Dallas Temperature IC Control Library 1.0. Miles Burton”);

Serial.println(“Dallas Temperature IC Control Library 1.0. Miles Burton”);

Serial.println(“Dallas Temperature IC Control Library 1.0. Miles Burton”);
}

void loop(void) {

// Ask the library whether the device is valid
switch(tempSensor1.isValid())
switch(tempSensor2.isValid())
switch(tempSensor3.isValid())
{
case 1:
Serial.println(“Invalid CRC”);
tempSensor1.reset(); // Attempts to redetect IC
tempSensor2.reset();
tempSensor3.reset();
return;

case 2:
Serial.println(“Not a valid device”);
tempSensor1.reset(); // Attempts to redetect IC
tempSensor2.reset();
tempSensor3.reset();
return;
}

Serial.print(DallasTemperature::toFahrenheit(tempSensor1.getTemperature()));Serial.print(“F 1” );delay (1000);Serial.println("\t");

Serial.print(DallasTemperature::toFahrenheit(tempSensor2.getTemperature()));Serial.print(“F 2” );delay (1000);Serial.println("\t");

Serial.print(DallasTemperature::toFahrenheit(tempSensor3.getTemperature()));Serial.print(“F 3” );delay (1000);Serial.println("\t");

delay (2000);
}

switch(tempSensor1.isValid())
     switch(tempSensor2.isValid())
        switch(tempSensor3.isValid())
  {

You do not use a switch statement like that. Each 'switch' has to be followed by it's own cases. Look at the syntax in the arduino reference.