Added digitalRead function with pin numberings that matches the digital pins