https://techietory.com/electronics/basics-of-digital-input-and-output-with-arduino/
Basics of Digital Input and Output with Arduino