Button on phone

Hi, I’m new here and want to know, how to read if the button on the phone is on or off?

Please use the “get data” sketch. In the sketch builder. With a button instead of a slider it will be either a 1 or 0 value.