add envelope detector for ultrasonic waveform detect