vortexxx12:
When temperature is 23-25 degrees heater and cooler is off
When temperature is under 23 degrees heater is on. Heater works from 23 degrees to 25 degrees
When temperature is higer than 27 degrees starts cooler, when drops down cooler off.
is this what you require
else if(temperature < 25 && temperature > 23) {
if the temperature is less than 25 and greater than 23 .....