Hello Luis,
Though it's hard for me to definitively state which is best for your situation, a full-wave rectifier will give you a representation of the entire waveform. You can then digitize it using an ADC and can then run algorithms in software to…