There are 4 switches used as set point, switch1
to maintain the condition at 32oC and 50% RH –
75% RH, switch2 to maintain the condition at 33oC
and 50% RH – 75% RH, switch3 to maintain the
condition at 34oC and 50% RH – 75% RH, and
switch4 to maintain the condition at 35oC and 50%
RH – 75% RH.
After the switch which used as set point has
selected and the SHT11 sensor has activated, the
data from switch and SHT11 sensor will be
processed and the data will be compared by
microcontroller. When the condition of temperature
read by SHT11 sensor is lower than the set point so
the microcontroller will turn on the light bulb and
when the condition of relative humidity read by
SHT11 sensor is higher than the set point so the
microcontroller will turn on fan. The program to
maintain the temperature and relative humidity in
the incubator can be seen in figure 7.
If ((PINB.0==1)&&(PINB.2==0)&&(PINB.3==0))
{
if (PINB.4==0) {
if(temp_val.f35)
{PORTD.7=1;PORTD.6=0;PORTD.5=1;PORTD.4=1;}
if((temp_val.f=75))
{PORTD.7=1;PORTD.6=1;PORTD.5=1;PORTD.4=0;}
if((temp_val.f>35)&&(humi_val.f