Not being touched SHOULD return a value of 0 for TM. Two thoughts: 1) Line 28 isn't clearing the old value of TM, so new values are being written over it. Going from 18 to 0 would look like "TM=08", for example. 2) There's something wrong with your screen. Whatever is causing your calibration problem may also be making your system detect touches that aren't there.