//It doesn't work. RELE2 never off
How do you know? It may well be working, but if VAL3 is LOW, RELE2 will immediately be set high again.
Put some Serial.prints in there so you can see what's going on.
//It doesn't work. RELE2 never off
How do you know? It may well be working, but if VAL3 is LOW, RELE2 will immediately be set high again.
Put some Serial.prints in there so you can see what's going on.