I have a very simple test sketch in which I\'m trying to set a pin to HIGH and then read its state with digitalRead. Here is my sketch.
HIGH
digitalRead
<
digitalWrite(3,HIGH); digitalRead(3);