This is probably the simplest circuit of digital voltmeter on the internet. 4 line program, Arduino, one transformer, two resistors, one cap and you are good to go!