Plage chauffage aquarium

Ce serait pas plus simple comme ça ?

if (temperature<=24){
ChauffePin=HIGH;
}

if (temperature>=26){
chauffePin=LOW;
}