XIAO RP2040 “problem with reading the status of a limit switch”

Hi! the pin is the number D8