The valve with a tee should go on the output side of the pump (between pump and tank) Then route back to the line.
On mine, I ran up from the pump, put in a tee. On the right side of the tee, the line feeds to the tank. ON the left side of the tee, I put the valve and then a 90 back into the sump.
Basically, the pipe goes from the pump to the tank with a branch coming out of it to the valve and then return
Hopefully the semi-sketch below will help illustrate what I'm so incompetent at verbally communicating.
pump
|
|
tee_______________tank
|
|
valve
|
sump
Finally, 3 edits and it looks like what I meant to say