A method for determining a state of a foldable device is provided. The foldable device comprises: a first set of electrodes located in a first portion of the foldable device; a second set of electrodes located in a second portion of the foldable device; a display device configured to display information to a user; and a processing system configured to: drive the first set of electrodes to generate a plurality of sensing signals that are detectable by the second set of electrodes; obtain a plurality of resulting signals associated with the plurality of sensing signals via the second set of electrodes; determine a state of the foldable device based on the plurality of resulting signals; and change one or more settings of the display device based on the determined state.