LM35 Heat Sensor Help

So I have made the Lm35 heat sensor work, and it picks up the temperature using this code

int outputpin= 0; void setup() { Serial.begin(9600); }

void loop() { int rawvoltage= analogRead(outputpin); float millivolts= (rawvoltage/1024.0) * 5000; float celsius= millivolts/10; Serial.print(celsius); Serial.print(" degress Celsius, ");

Serial.print((celsius *9)/5+ 32); Serial.println(" degrees Fahrenheit"); delay(3000);

}

Now can someone help me design it so that when it hits a certain temperature a blue LED light goes off.

If they can drop the schematics and code or just guide me that would be great. For an example when it reads 70 Degrees "F" the LED turns on.

Perhaps like this ...

if (celsius > threshold) {
   digitalWrite(ledPin, HIGH);
}
else {
   digitalWrite(ledPin, LOW);
}

...R

Robin2: Perhaps like this ...

if (celsius > threshold) {
   digitalWrite(ledPin, HIGH);
}
else {
   digitalWrite(ledPin, LOW);
}

...R

hate to be a burden , but over night i also thought how about throwing in a buzzer noise when it also hits that designated temp.

Go through the examples of the tutorial section. There is a buzzer example.

ArduWeenie:
hate to be a burden , but over night i also thought how about throwing in a buzzer noise when it also hits that designated temp.

May I suggest you take the burden on your own shoulders and try a little bit of hard thinking using my example as a basis ?

The Arduino is a great system for learning-by-doing.

…R