The microcontroller should display the temperature and humidity values. With the LCD display figured out, it works. But the temperature is constantly displayed 0. There is a lot of code, I do not know what to throw off. Here is the main function in which calls occur, tell me what to show.

int main(void) { I2C_Init(); _delay_ms(100); LCD_init(); char buffer[20]; roomAdrInit(); SHT21_reset(); while(1) { SHT21_reset(); //write_user_register(); LCD_sendString(itoa((int)get_temperature(), buffer, 10), 4, 0, 0); _delay_ms(1000); } } 

There are files twi.c (functions for working with I2C) and sht21.c (functions sht)

    0