int temp=45;
void setup() {
// put your setup code here, to run once:
pinMode(12, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
while (temp >30)
{
digitalWrite(12, HIGH); delay(500);
digitalWrite(12,LOW); delay(500);
temp =temp-1;
Serial.println(temp);
}
}