Have you tried putting the digital sensor code inside an IF statement that tests for the passage of 500mS based on values returned from millis() ? (using an elapsed time variable that you read millis() into )
Have you tried putting the digital sensor code inside an IF statement that tests for the passage of 500mS based on values returned from millis() ? (using an elapsed time variable that you read millis() into )