It looks like the second waveform never gets above it steady state of 900 mV, so just detecting a peak of over, say, 1.1 V should be enough. You need to try it and see if it works reliably. For a 4 KHz waveform, if you sample at 8KHz you might always sample the zero crossing, If you know it...