there is a lot of expensive arduino modules available to do that, this method is most effective & cheap way. also measuring light which coming from ne-2 neon lamp gives us an idea about voltage quality.
also same setup can be used to validate your 12v inverter is really sine wave or not.
more info available in there: http://psychip.net/video/ac-line-detection-with-two-components
Pretty much all of the neon indicators on my power bars failed after a few years, so watch out for failures down the road.