This code is meant to pause for the amount set by a pot (from 1 to 60 seconds):
I tested with pollingInterval variable set at 10, 25 and 50ms.
An expected 60s pause took
10ms -2m 28s
25ms - 1m 35s
50ms - 1m 17s respectively.
There is not that much code executing but the poling interval has a...