How to use a voltage analog sensor ZMPT101B?

Hello everyone, this is my first forum post, i was making a sensor based experiment at arduino ide software,

i used analogRead(A0) to read a value

to obtain the main ac voltage i used too a simple formula
Vrms = sqrt(2) analogRead(A0);

my question is:
how´s to make a better code?,i mean as a common voltmeter perfomance.

thank you

Welcome to the Arduino forum.
What documentation are you using to connect the module to your Arduino?
You might want to read this older forum post.

Paul

Using this zmpt101b library?