#include <LiquidCrystal.h>
#include <DallasTemperature.h>
#include <OneWire.h>

LiquidCrystal lcd(12,11,10,9,8,7);
OneWire oneWire(6);
DallasTemperature natija(&oneWire);

void setup() {
lcd.begin(16,2);
pinMode(5, INPUT);
lcd.setCursor(5,0);
lcd.print("TATU");
 Serial.begin(9600);
  natija.begin();
}

void loop() {
  int btn = digitalRead(5);
  natija.requestTemperatures();
  float holat = natija.getTempCByIndex(0);
  if(btn==HIGH){

  lcd.setCursor(0,0);
  lcd.print("OlamgirIbrohimov");
  lcd.setCursor(0,1);
  lcd.print("Harorat:");
  lcd.print(holat);
  }
}