#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup() {
lcd.init();
lcd.backlight();
}
void loop() {
int hodnota = analogRead(A0);
int tempr = map(hodnota,953,115,-24,80);
zobraz(tempr,0);
zobraz(hodnota,1);
delay(500);
lcd.clear();
}
void zobraz(int &num, int row){
lcd.setCursor(0,row);
lcd.print(num);
}