if and else commands problem

I tried to make a simple fire water pump system by using if else commands.I thought it would work easily,but there is a problem about if commands.I just wanted to make the pin that i desired high position after an input signal.Never happened.It always giving output signal without an input signal.Would you help me please?

description of inputs:

jokerpompa:A small water pump to prevent to get in service bigger water pumps.Also hold the system pressure desired value.

devirdaimpompa:A small circulation water pump to prevent the system to be frozen by low temperature.It works by a thermometer.

pompa1:A main water pump gets in service by pressure difference switch
pompa2:A main water pump gets in service by pressure difference switch

Main pumps work as star-delta,the others work directly

yanginpompasideneme.ino (2.94 KB)

int jokerpompa = 22;
void loop(){
  digitalRead(jokerpompa);//Joker pompa switch sinyalini oku
    if(jokerpompa == HIGH)

Common mistake. "jokerpompa" is the pin number, not the value of the input. Change that and everything like it to:

const int jokerpompa = 22;
void loop() {
    if (digitalRead(jokerpompa) == HIGH) //Joker pompa switch sinyalini oku