How to get the Arduino to close a circuit

Between the 5v arduino pin and the base right? What resistance would be ideal? 1k? Could you explain why I need it?