by Craig Bennett
This is meant to turn off the screen when something is wrong in front of the proximity sensor.
Note you need to make sure your lock screen should at least require a swipe to prevent pocket dial.
Update. This adds a second delay to keep the thing from turning off your device when you are sliding your notifications down