Welcome. The internet has lots of hits on this.
https://learn.sparkfun.com/
https://learn.adafruit.com/
There are many examples that came with your Arduino IDE.
.