| CPC G06F 3/0362 (2013.01) [G06F 3/041 (2013.01); G06F 3/0412 (2013.01); G06F 3/0443 (2019.05); G06F 3/0446 (2019.05)] | 20 Claims |

|
1. A device comprising:
a frame configured to secure a cover glass layer to the device;
a gap between the frame and the cover glass layer;
a first electrode positioned on a bottom surface of the cover glass layer and a second electrode positioned opposite the first electrode on an adjacent top surface of the frame; and
a controller coupled to the first electrode and the second electrode and configured to detect a capacitance between the first electrode and the second electrode, wherein detecting the capacitance between the first electrode and the second electrode includes:
determining a dielectric constant of a substance between the first electrode and the second electrode based on the capacitance between the first electrode and the second electrode;
identifying the substance between the first electrode and the second electrode based on the determined dielectric constant; and
determining that the identified substance has entered the gap based on the determined dielectric constant.
|