An ophthalmic device comprising: an eyelid occlusion sensor; an adjustable lens; and a controller, wherein the controller comprises electronics that perform operations comprising: detecting, at a plurality of points in time, an output of the eyelid occlusion sensor; determining, based on the detected output of the eyelid occlusion sensor, that a first gesture has occurred by: determining, based on the detected output of the eyelid occlusion sensor, that a degree of occlusion of an eye increases during a first period of time; and determining that a detected output of the eyelid occlusion sensor at a first point in time differs from a detected output of the eyelid occlusion sensor at a second point in time by less than a specified amount, wherein the first point in time and the second point in time is after the first period of time; responsive to determining that the first gesture has occurred, switching the optical power of the adjustable lens between a first optical power and a second optical power, wherein the first optical power is different than the second optical power; determining, based on the detected output of the eyelid occlusion sensor, that a second gesture has occurred; and responsive to determining that the second gesture has occurred, setting the optical power of the adjustable lens to the first optical power. an eyelid occlusion sensor; an adjustable lens; and a controller, wherein the controller comprises electronics that perform operations comprising: detecting, at a plurality of points in time, an output of the eyelid occlusion sensor; determining, based on the detected output of the eyelid occlusion sensor, that a first gesture has occurred by: determining, based on the detected output of the eyelid occlusion sensor, that a degree of occlusion of an eye increases during a first period of time; and determining that a detected output of the eyelid occlusion sensor at a first point in time differs from a detected output of the eyelid occlusion sensor at a second point in time by less than a specified amount, wherein the first point in time and the second point in time is after the first period of time; responsive to determining that the first gesture has occurred, switching the optical power of the adjustable lens between a first optical power and a second optical power, wherein the first optical power is different than the second optical power; determining, based on the detected output of the eyelid occlusion sensor, that a second gesture has occurred; and responsive to determining that the second gesture has occurred, setting the optical power of the adjustable lens to the first optical power. detecting, at a plurality of points in time, an output of the eyelid occlusion sensor; determining, based on the detected output of the eyelid occlusion sensor, that a first gesture has occurred by: determining, based on the detected output of the eyelid occlusion sensor, that a degree of occlusion of an eye increases during a first period of time; and determining that a detected output of the eyelid occlusion sensor at a first point in time differs from a detected output of the eyelid occlusion sensor at a second point in time by less than a specified amount, wherein the first point in time and the second point in time is after the first period of time; determining, based on the detected output of the eyelid occlusion sensor, that a degree of occlusion of an eye increases during a first period of time; and determining that a detected output of the eyelid occlusion sensor at a first point in time differs from a detected output of the eyelid occlusion sensor at a second point in time by less than a specified amount, wherein the first point in time and the second point in time is after the first period of time; responsive to determining that the first gesture has occurred, switching the optical power of the adjustable lens between a first optical power and a second optical power, wherein the first optical power is different than the second optical power; determining, based on the detected output of the eyelid occlusion sensor, that a second gesture has occurred; and responsive to determining that the second gesture has occurred, setting the optical power of the adjustable lens to the first optical power.