If iPad ignores your Apple Pencil

The other day, my Apple Pencil Pro stopped working. My iPad mini recognized it when docked, and it was paired in Bluetooth settings, but touching it to the screen did nothing.