Description:This function waits for the sensor press event and returns an optimal sensor threshold. The threshold should be about 12.5% percents of the signal(delta) amplitude. Before measurement the sensor must be initialized with MTouchSetSensor(...). Use the threshold result to intialize sensor (see parameter "threshold" in MTouchSetSensor(...) function).
Parameters:
- sensorNumber - sensor number.
Returns: the function returns an optimal sensor threshold value.