Reading "ac voltage pressence" using software only.

@jremington

Can you, if possibile in short, explain the theory behind this circuit.

DO I need "small signal" diodes in this setup?