# Battery

The **battery** widget can be used to display the battery level of a device, typically as a **percentage**, **Volts**, or **mVolts**. By monitoring the battery level, you can better understand how long you can continue to use the device before needing to replace or recharge the batteries.

In the **Widget options** modal box, enter a **name** as the label for your widget in the **Name** text box, and select the **data field** bound with the battery voltage from the **Data field** drop-down list.

To add a **color** to the **background** of the widget, click on the **Background color** box and choose a color from the **color picker**.

Click on the **Save** button.

<figure><img src="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2Ff5DZOQT1Te6ZgFLyJuWR%2Fbattery-1.png?alt=media&#x26;token=e2f50e4c-459f-4cc2-8e3b-77468bc33b14" alt="" width="328"><figcaption></figcaption></figure>

The resulting **Battery** widget looks something like this:

<figure><img src="https://2494440469-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fggsr9Xlsze5cwVr4WMof%2Fuploads%2F6HRWmysDZtBBnrK0UfHW%2Fbattery-2.png?alt=media&#x26;token=b3f830ce-28d9-40f6-986e-25f06413af93" alt="" width="299"><figcaption></figcaption></figure>
