Motorized Valve

Sorry I should be more clear.

I want to see if I can divert water from my shower to a tank while I'm waiting for it to turn hot.

I intend to use the ATLAS SCIENTIFIC ENV-TMP temperature sensor in the pipe/tube but need a motorized valve of some sort to automatically send the "hot" water back to the shower.

I'm not sure if a solenoid valve is what I need.

Any help would be greatly appreciated.