To gain more experience, suggest you slow down and review the examples that come with the IDE.
Use CTRL T to format your code.
In the future:
Show us a good schematic of your circuit.
Show us a good image of your wiring.
Give links to components.
Posting images:
https://forum.arduino.cc/index.php?topic=519037.0
Use CTRL T to format the sketch.
