Text this: Optimization of False Alarm Rate and Misdetection Rate for a Desired Threshold Voltage in Cooperative Communication