Create auto and manual mode to control valves with nodemcu esp8266

Yes, but not the way you’ve written the sketch.
As I said initially…

So when your V10 widget changes it will override the sendTemps() logic, but then the next tome that sendTemps() is called it will override the BLYNK_WRITE(V10) logic, switching back to automatic mode.

Your BLYNK_WRITE(V10) code should look something like this…

bool auto_mode;

BLYNK_WRITE(V10)
{
  auto_mode = param.asInt();
}

Then you expand your sendTemps() function to take different actions if sendTemps()==true

Also, i think you’ve chosen the wrong type of board for this project. The NodeMCU really only has 5 useable pins…

As you need at least 11 pins you would be better using an ESP32.

Also, I don’t see the point in defining aliases for your pins…

then not using them…

Pete.