Hello, I’m making website to see temperature levels, using LM35 IC and, arduino Ethernet shield.
tempC1 = analogRead(temp_input_pin_01); // taking value from senser ( temp_input_pin_01 ) and save it in to tempC1.
tempC1 = (5.0*tempC1*100.0)/1024.0 ;
if (tempC1 >= 45)
{
digitalWrite(cooling_fan_01,HIGH);
}
else
{
digitalWrite(cooling_fan_01,LOW);
}
//and this is in html section
client.println("<div class='col-md-2'>");
client.println("<div class='panel panel-warning'>");
client.println("<div class='panel-heading'>");
client.println("<h3 class='panel-title' align='center'>Temperature 01</h3>");
client.println("</div>");
client.println("<div class='panel-body'>");
if(tempC1 >= 45)
{
client.println("<img src='http://miracle.lk/MPB_NCE/13.jpg'width='112' height='110'align='center'>");
}
else
{
client.println("<img src='http://miracle.lk/MPB_NCE/14.jpg'width='112' height='110'align='center'>");
}
client.println("<div class='container' align='center'></div>");
client.println("</div>");
client.println("</div>");
client.println("</div>");
this is not working, at least http request also not working, but if I use any other condition, (or other variable) this is working perfectly. I can’t understand why this is happening.
please some one help me…
thank you