Fixed the digital pin issue.