When enabled, the battery widget will display the current battery percentage of your iPad Pro, plus any Bluetooth devices connected to it. With the Apple Pencil using Bluetooth to communicate with the tablet, it naturally shows up in the widget.
To enable it, swipe down from the top of the screen to display Notification Center.
Tap the Edit button on the left side of the screen, just below the calendar. Find Batteries in the list of available widgets, then tap on the "+" sign next to it. After adding the widget and placing it in your preferred order, tap Done.
Going forward, you can quickly check on the battery status of your iPad Pro and Apple Pencil with a swipe down from the top of the screen under the Widget tab.
reading•How to see how much battery your Apple Pencil has left
Apr 19•iPhone X vs Galaxy S9: How to choose
Apr 19•Apple cracks down on drone flights over its spaceship campus
Apr 19•Have Apple's iPhone and iPad hit a wall?
Apr 19•Pixel 2 vs. iPhone: Why Google's phone is the best upgrade