Raspberry PI GPIO Magnetic Switch

PURPOSE: Determine Status of Garage Door Open or Closed
DESCRIPTION: I am attempting to connect a magnetic switch to a Raspberry PI 4 with Home Assistant installed via the Raspberry PI Imager. I installed the GPIO Intergration (libgpiod2). I connected the magnetic switch as illustrated in the schematic below. I have added lines 19-26 to the configuration.yaml. I have the Door Status device on my Overview.
PROBLEM: Door Status does not change.
Any suggestions would be appreciated. Thanks

I think you’d have better luck posting to wherever you got the libgpio2 integration. RPi GPIO is no longer a supported integration in HA. Given the uncertain future of the integration after it was deprecated in 2022, I switched to using ESPHome devices where I had been using pins on my RPi. Maybe things have settled down since then and the third-party integration is well supported now, I just haven’t checked lately.

Thank you, my first GPIO device so the background overview of the platforms is very useful.