You can easily incorporate a timeout function within the routine reading the failing sensors. Once the timeout has elapsed you can direct the flow of your program at the most convenient point for resume the errors.
The timeout is just a word variable used as a counter. You will clear it, all the time you enter the routine, and once in the loop, the variable increments till reach the timeout value you will set.
Cheers
Al.
Bookmarks