I guess you must have changed the program to try pin 23, but you didn't say or show the new code.
Paul