good application :
i am has been used project about the temperature by dht sensor and i used opt and mosfet for control the res for temprrature and humidite but what is meaning
humidInd =9- humid/10;
if (temp%2==0) //even temp
{
tempInd=(temp/2)-8;
}
else //odd temp
{
tempInd=(temp/2)-7;
}
if (tempInd < 0) tempInd=0;
if (tempInd > 9) tempInd=9;
9,2,8 and 7 ..