Reading "ac voltage pressence" using software only.

Markoitel.... thanks for explaining. You might be in luck. Try this very basic circuit...... the output of that could go to the input of an analog pin of an arduino