How to control rc exhaust pipe smoke with arduino

i think i will add a NPN transistor between 7.4v power supply and pump, it's the only way i see to control the on/off of it when a switch is pressed

wuth the servo code i can only turn on but can't turn off

i tested myservo.write with 0, 90, 180 ecc.. i can only turn down the power but not off