Update calculation with transistor
Move pins into related variable