Please don’t send stuff directly to me. Post it here so all can assist. Be sure to properly format the code so it displays correctly.
The example I posted here shows how to read the input from a digital pin, and make changes based on its state. That should be enough to get you going.