if(teplota>23)
digitalWrite(Kot, LOW);
else
digitalWrite(Kot, digitalRead(Ter1) | digitalRead(Ter2));
digitalWrite(VenP, digitalRead(Ter1));
digitalWrite(CerP, digitalRead(Ter1));
digitalWrite(VenR, digitalRead(Ter2));
P.S. inac na to stacia 2tranzistory a 3draty, nepotrebujes arduino.