if(temp1<=22 && flame,HIGH)
What is this rubbish supposed to do? Have you ever seen an if statement with commas in it?