Write an Arduino program

A temperature detector consists of an Arduino Uno microcontroller and the LM35
transistor which is used to obtain the furnace temperature. It also contains a led and a
buzzer which is connected to digital pin 7 and 12, respectively. The code is defined to
receive the analog signal of the LM35 from pin A0. For temperatures less than 60
degrees Celsius, the led and the buzzer turn off, and for temperatures greater or equal
than 60 degrees Celsius the led and the buzzer turn on.

What is your question, please?

arduino coding. ididnt know how

Do you own an Arduino? What type?
Have you installed the IDE?

Hello
It seems to be a piece of homework, isĀ“nt it?

int red=7;
int buzzer=12;
int LM35=0;
int val=0;
int temp=0;
void setup()
{
pinMode(red,OUTPUT);
pinMode(buzzer,OUTPUT);
}

void loop()
{
val=analogRead(LM35);
temp=(val*500)/1024;

Serial.println(temp);

if(temp<60)
{
digitalWrite(red,LOW);
noTone(buzzer);
}
else
{
digitalWrite(red,HIGH);
tone(buzzer,30);
}
}

forum closed. i do it the arduino programming