Circulation pump themperature set problem

Hi,and sorry for my english.
I have problem of my thermometer with circulation pump controller. Can anybody help me with my sketch. The themperature is working good,but menu who set the themperature of circulation pump power on is not working.
My sketch:

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

#define ONE_WIRE_BUS 2 // DS18B20 to D2 pin
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
// select the pins used on the LCD panel
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
int Backlight =10; // lcd backlight to D10 pin
DeviceAddress Katilas = { 0x28, 0xBF, 0x84, 0x3E, 0x03, 0x00, 0x00, 0x50 };
DeviceAddress Boileris = { 0x28, 0xD0, 0x48, 0x3E, 0x03, 0x00, 0x00, 0xB4 };
// define some values used by the panel and buttons
#define btnRIGHT 4
#define btnUP 1
#define btnDOWN 2
#define btnLEFT 3
#define btnSELECT 5
#define btnNONE 0
float set=20.0;

int motor =12;
int keyPressed;
int adc_key_in = 0; //variable to store raw data from keypad
boolean menu_timer; //variable to test if menu timeout has completed
int read_Key_Pressed()
{ delay (200);
 adc_key_in = analogRead(0);
 //delay (200);
 // read the value from the sensor
 // my buttons when read are centered at these valies: 0, 144, 329, 504, 741
 // we add approx 50 to those values and check to see if we are close
 if (adc_key_in > 1000) return btnNONE; // We make this the 1st option for speed reasons since it will be the most likely result
 if (adc_key_in < 50) return btnRIGHT;
 if (adc_key_in < 195) return btnUP;
 if (adc_key_in < 380) return btnDOWN;
 if (adc_key_in < 555) return btnLEFT;
 if (adc_key_in < 790) return btnSELECT; 

 return btnNONE; // when all others fail, return this...
}

void setup()
{
 pinMode(Backlight, OUTPUT); //lcd LED kaip isejimas
 analogWrite(Backlight, 125);
 pinMode(motor,OUTPUT);
   lcd.begin(16, 2); // start the library
 lcd.begin(16,2);
  lcd.print("Termometras v1.0");
  lcd.setCursor(4,1);
  lcd.print("by Korne");
 delay(2000);// print title msg and pause for 2secs
 lcd.clear();
 main_routine();
 

}
void main_routine()
{ keyPressed == 0; //reset key to none
 dispDefaultScreen();
 keyPressed = read_Key_Pressed(); //scan for key press
 //delay(100);
 if (keyPressed == 5) //if a key is pressed
 {
  lcd.clear();
 lcd.setCursor(2,0);
 lcd.print("Temperatura");
 lcd.setCursor(6,1);
 lcd.print(set);
 }
  if (keyPressed == 4)
  {
 set=set+1;
 }
 if(keyPressed == 3)
  {
  set=set-1;
  }
 else main_routine(); //else loop back to top function
}
void printTemperature(DeviceAddress deviceAddress)
{
float tempC = sensors.getTempC(deviceAddress);
if (tempC == -127.00) 
{
lcd.print("klaida");
} else {
lcd.print(tempC);
}}

void loop() //nothing in here
{
 
if(sensors.getTempC(Katilas)>set)
{
  digitalWrite(motor,HIGH);
}
else if(sensors.getTempC(Katilas)<set)
{
  digitalWrite(motor,LOW);
}

}
void dispDefaultScreen()
{
 sensors.requestTemperatures();
lcd.setCursor(0,0);
lcd.print("Katilas ");
printTemperature(Katilas);
lcd.write(0b11011111); //laipsnio simbolis
    lcd.print("C"); // celsijaus simbolis
lcd.setCursor(0,1);
lcd.print("Boileris ");
printTemperature(Boileris);
lcd.write(0b11011111);
    lcd.print("C");
}

but menu who set the themperature of circulation pump power on is not working.

The code you posted does something. We have no idea what.
You want it to do something. We have no idea what.

We can't help you unless we know what the problem is. "is not working" is too vague to be meaningful.

My LCD display is with buttons and I whant: when I press SELECT(5) button the programm go to THEMPERATURE xxC menu, and with UP(1) or Down(2) buttons who set the themperature at which the circulation pump turns on. How to do it I dont' understanding.

void main_routine()
{ keyPressed == 0; //reset key to none

Nothing goes on the line after the {.

Using the equality operator (==) here is probably wrong. You want the assignment operator (=).

void main_routine()
{ keyPressed == 0; //reset key to none
 else main_routine(); //else loop back to top function
}

DO NOT EVER DO THIS AGAIN.

You might want a while loop, that you break out of when something happens. You absolutely do NOT want a recursive call.

There is no way to fix this code until you make some major changes, including comments, white space, and proper formatting, using Tools + Auto Format.

I delayted my wrong menu and code now is :

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

#define ONE_WIRE_BUS 2 // DS18B20 to D2 pin
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
// select the pins used on the LCD panel
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
int Backlight =10; // lcd backlight to D10 pin
DeviceAddress Heating = { 
  0x28, 0xBF, 0x84, 0x3E, 0x03, 0x00, 0x00, 0x50 };
DeviceAddress Boiler = { 
  0x28, 0xD0, 0x48, 0x3E, 0x03, 0x00, 0x00, 0xB4 };
// define some values used by the panel and buttons
#define btnRIGHT 4
#define btnUP 1
#define btnDOWN 2
#define btnLEFT 3
#define btnSELECT 5
#define btnNONE 0
float set=20.0;

int motor =12;
int keyPressed;
int adc_key_in = 0; //variable to store raw data from keypad

int read_Key_Pressed()
{ 
  delay (200);
  adc_key_in = analogRead(0);
  //delay (200);
  // read the value from the sensor
  // my buttons when read are centered at these valies: 0, 144, 329, 504, 741
  // we add approx 50 to those values and check to see if we are close
  if (adc_key_in > 1000) return btnNONE; // We make this the 1st option for speed reasons since it will be the most likely result
  if (adc_key_in < 50) return btnRIGHT;
  if (adc_key_in < 195) return btnUP;
  if (adc_key_in < 380) return btnDOWN;
  if (adc_key_in < 555) return btnLEFT;
  if (adc_key_in < 790) return btnSELECT; 

  return btnNONE; // when all others fail, return this...
}
void setup()
{
  pinMode(Backlight, OUTPUT); //lcd LED kaip isejimas
  analogWrite(Backlight, 125);
  pinMode(motor,OUTPUT);
  lcd.begin(16, 2); // start the library
  lcd.begin(16,2);
  lcd.print("Termometras v1.0");
  lcd.setCursor(4,1);
  lcd.print("by Korne");
  delay(2000);// print title msg and pause for 2secs
  lcd.clear();
}
void loop()
{
  sensors.requestTemperatures();
  lcd.setCursor(0,0);
  lcd.print("Heater ");
  printTemperature(Heater);
  lcd.write(0b11011111); //laipsnio simbolis
  lcd.print("C"); // celsijaus simbolis
  lcd.setCursor(0,1);
  lcd.print("Boiler ");
  printTemperature(Boiler);
  lcd.write(0b11011111);
  lcd.print("C");
}
void printTemperature(DeviceAddress deviceAddress)
{
  float tempC = sensors.getTempC(deviceAddress);
  if (tempC == -127.00) 
  {
    lcd.print("error");
  } 
  else {
    lcd.print(tempC);
  }
}

Please help me to make menu with set themperature for power on the pump