pinMode added for the control pin