GPIO Zero

Seems to be the library to switch to as it supports the RPi5 https://gpiozero.readthedocs.io/en/stable/index.html#

Read More