A powerful feature of the Raspberry Pi is the row of GPIO (general-purpose input/output). A 40-pin GPIO header is found on all current Raspberry Pi boards.
Any of the GPIO pins can be designated (in software) as an input or output pin and used for a wide range of purposes.