2code in 1 how to use interrupt

#include <OneWire.h>
#include <DallasTemperature.h>
#include<Wire.h>
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3f,16,2);
int x=18;
int y=0;
#define bot 4
#define Mode 5
#define ledHot 8
#define ledCool 9
#define sensorCombu A0
#define Nvetor 55
int filtered;
int vetor[Nvetor];

 
OneWire pino(3);
DallasTemperature barramento(&pino);
DeviceAddress sensor;
 
void setup(void)
{
  pinMode(sensorCombu, INPUT);
  pinMode( bot,INPUT_PULLUP);
  pinMode(Mode,INPUT_PULLUP);
  pinMode(ledHot,OUTPUT);
  pinMode(ledCool,OUTPUT);
  Serial.begin(9600);
  lcd.begin();
  barramento.begin();
  barramento.getAddress(sensor, 0); 
    
  
}

void Combu(){
    int leitura = analogRead(sensorCombu);
  for (int i = Nvetor - 1; i > 0; i --) {
    vetor[i] = vetor [i -1];
    
  }
  vetor[0] = leitura;

  long soma = 0;

  for (int i = 0; i < Nvetor; i ++) {
    soma = soma + vetor[i];
  }

  filtered = soma / Nvetor;
  
  long escala = map(filtered, 374, 749, 0, 4500);
  float saida = escala / 100.0;


  if (saida < 0.0) saida = 0.0;
  if (saida > 45.0) saida = 45.0;
   float km = saida*10;

 lcd.backlight();
 lcd.clear();

 lcd.setCursor(0, 0);
  lcd.print(saida);
 lcd.setCursor(5, 0);
   lcd.print ("Litros");
   lcd.setCursor(0, 1);
   lcd.print ("Autonomia");
   lcd.setCursor(9, 1);
   lcd.print (km);
   lcd.setCursor (14,1);
  lcd.print ("KM");
delay(2000);}
  
  void Temp(){
   
  int temperatura = barramento.getTempC(sensor);
barramento.requestTemperatures();
lcd.clear();
  lcd.setCursor(0,0);
  lcd.print("Temp Ambiente");
  lcd.setCursor(14,0);
  lcd.print( temperatura);
  lcd.setCursor(1,1);
  lcd.print("Set_temp");
  lcd.setCursor(10,1);
  lcd.print(x);
  
  if (!digitalRead (bot)) {
    x++;
    delayMicroseconds(100);
    
    lcd.setCursor(10,1);
    lcd.print(x);}
    if (x>28){
      x=18;
    }
    
if ((temperatura==x)){
  digitalWrite(ledCool,LOW);
  digitalWrite(ledHot,LOW);
}
   
   
   if (temperatura>x+2) {
    digitalWrite(ledCool,HIGH);
    digitalWrite(ledHot,LOW);
   }
    
  if (temperatura<x-2){
    digitalWrite(ledHot,HIGH);
    digitalWrite(ledCool,LOW);
  }}

  void loop(){
    Combu();
 if(!digitalRead(Mode)){
    Temp();
    }
    }

Hello everyone, I ask you to desecrate the language but I’m using google translator so I’m sorry for some misunderstood words, I’ve got these two codes together in one! when I run separately it works normal, but when put together as it’s attached (hopefully it does) they do not work, the display only displays the first code, I’m trying to run on an arduino one, using a 16x2 lcd display via I2c, the temperature sensor It’s ds18b20. Thanks in advance to anyone who helps me