This does not seem to be a problem with your code. Do you have a resistor in series with the LED on pin 6?
What happens if you leave the pinMode and digitalWrite statements out? Do you get proper data?
Please don't post screenshots of code. Nobody will type it in from a screenshot to evaluate. Copy your code and paste it here using so-called code-tags.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.