Since the optimum temperature for egg incubation is between 37 and 38.5°C, the microcontroller constantly check
the temperature returned from the LM35 temperature sensors. For this 1000 samples of the adc are taken and their average
is computed. The temperature is computed to two decimal places using mathematical operations and a suitable correction
factor is applied to rectify an error due to the external reference voltage. If the value of temperature lies below the optimum
range, a high voltage is given through pin 23 of the microcontroller to the base of transistor T1 to trigger the relay. The
triggering of the relay turns on the incandescent lamp through a 230V supply and the circulating fan through a 12V supply.
The heat from the incandescent lamp increases the temperature of the air and this is circulated inside the incubator using the
fan. This process continues till the temperature reaches above 38.5°C. Once this range is exceeded the relay is turned off
and the incandescent lamp and the fan get turned off, till the temperature goes below the lower limit again. Two LEDs are