@Dresch360

The Pi5 has new GPIO hardware. It is not compatible with software written for earlier Pi models.

So look at what gpio library is being called by the modules you are wanting to use.

I’ve been rewriting my own code to use gpiozero .
gpiozero works and isrecommend by raspberry pi foundation and works on older pis too.

Lgpio works on rpi5
Gpiod works on rpi5

Pigpio WILL NOT WORK
RPi.GIPO WILL NOT WORK

I haven’t tried rpi-lgpio which supposed to be a drop in replacement for rpi.gpio.