Highest PWM frequency output for the Uno/Nano

Why, when I attempt to add any delay, either via the sensorValue integer or in a delay in a Serial print routine, does it stop and not restart? Any recommendations? Thanks again for the help.