while(1){
start :
temp = temp_sensor_func(); // call temp sensor function
dtostrf(temp, 1, 2, buffer); //convert temp value from double to char to display on LCD and transmit with Uart
lcd_print(&Lcd , buffer); //display on Lcd
_delay_ms(100); //delay to hold the data on Lcd
//lcd_clr(&Lcd);
if (temp >37.8||UART_recieve1(&Uart)=='c') //condtion to check if val is normal or out of range
{
lcd_print(&Lcd , buffer); //display temp on lcd
lcd_clr(&Lcd); //clr lcd
UART_transmit_string1(&Uart ,buffer);
_delay_ms(1000);//send temp to the App
}//if
goto start;
}// for while
}//for main