Changed digitalRead for interrupt