bugfix digitalRead() and isOpen() #3