adjusted threshold to be relative when range is large and absolute when range is small. set screen to be ON when calibrating.