It's only compatible with the iPad (sixth gen and later), iPad Air (third gen), iPad Mini (fifth gen), iPad Pro 12.9-inch (first and second gen), iPad Pro 10.5-inch, and iPad Pro 9.7-inch. The USB-C Apple Pencil is compatible with iPad (10th gen and A16), iPad Air (fourth gen, fifth gen, M2, M3, and M4), iPad Mini (sixth gen), iPad Pro 11-inch (first gen and later, including M4), and iPad Pro 12.9-inch (third gen and later, including M4 and M5). Unfortunately, Apple officially discontinued it, so newer iPads—including the iPad Air (M2, M3, and M4) or iPad Pro (M4 and M5)—don't support it.