getState

open fun getState(): Boolean

Get the state of the digital sensor.