5v dc fan function and raspberry pi wiring question

Hey everyone,
I’ve got a little 5v fan connected to 5v and Ground then on my breadboard’s side rail I connected the other two wires together. Doing this turns the fan off. I’m hoping to make a bang bang function that kicks the fan on if the humidity hits a setpoint value. I’m not sure where to wire the two wires on my breadboard for the raspberry pi though.

I’ve got them wired up to gpio5 and gpio6 and gonna see what I can do with that. For now its just running constant on.

Got it working,

I sent the blue wire to gpio5 and then the black one to ground.

got a control widget to turn it on and off.
image

I guess can I have the fan kickon when the temperature hits a setpoint?