DHT11 Sensore Temperatura e Umidità per comando relè

did it work as you intended?
personally I would create a bigger difference between the ON and OFF.
For temperature (~2C) ==> if temp > 27 switch on .... if temp < 25 switch off

and the humidity (~5%)

as that is about the accuracy of the sensor.

Furthermore move the delay(2000) to the end of the loop makes more sense.
As that synchronizes the actions of the print statements and the relays.

Be aware that NOT all relays can be connected directly to Arduino.