The big noise can decrease sensitivity more than in 4 times. So the recommended value for the press detection threshold is 1/8th of the sensor signal amplitude (delta). To calculate the optimal threshold value MTouchDebugThreshold(…) function can be used. It waits for the user presses the sensor and returns the optimal threshold value as 1/8th of the detected amplitude. The calculated optimal value should be passed for initialization to MTouchSetSensor(…).