troubleshooting help with arduino uno ide

Where's does your loop function end?

Try to find an online tutorial about scope too.