A method for detecting a lift condition from an illuminated surface portion of an optical motion sensing device. The current wafer lock readers on the market rely on a sensitive touch to operate andor do not give the exact depths to recreate a key. The application of this method addresses the \u201cgreen water\u201d problem typically associated with the removal of cyanuric acid from swimming pools with melamine.