Re: Problem with this sketch

{
delay (100);

}

{Why} {are} {there} {useless} {curly} {braces} {here} {?}

Why
is
your
code
so
piss-poorly
indented?

Use Tools + Auto Format BEFORE posting code again.

 if(temp1<=20 && flame_pin,HIGH)

Why have you not explained what this is supposed to do? It does NOT, but without knowing what you think it should do, we can't help you fix the code.

  if (temp1 < 22)
  {
  digitalWrite (PWM_pin,150);
  Serial.println ("ventiliatorius ijungtas");
  digitalWrite (pad_pin,HIGH);
  Serial.println ("padavimas ijungtas");
  }
  else if (temp1 > 22)

Why is there no code to deal with temp1 equal to 22?