Adding interval reads to digitalRead.