Making a while-loop timeout

BulldogLowell:
you are testing the value rad on topSwitchPin inside the while-conditional that tests that value... basically up to three times per loop.

why?

I want a Blynk LED to change state while loop runs.

The last test I har to add for the while-loop to stop running and run stopp() function. (It did not do that if i left it out, even though i belived it would so).