Continuous monitoring of voltages ranging from tens to hundreds of kV over environmental conditions, such as temperature, is of great interest in power grid applications. This is typically done via instrument transformers. These transformers, although accurate and robust to environmental conditions, are bulky and expensive, limiting their use in microgrids and distributed sensing applications. Here, we present a millimeter-sized optical voltage sensor based on piezoelectric aluminum nitride (AlN) thin film for continuous measurements of AC voltages <350𝑘𝑉 𝑟 𝑚𝑠 (via capacitive division) that avoids the drawbacks of existing voltage-sensing transformers. This sensor operated with 110𝜇𝑊 incident optical power from a low-cost LED achieved a resolution of 170𝑚𝑉 𝑟 𝑚𝑠 in a 5kHz bandwidth, a measurement inaccuracy of 0.04% due to sensor nonlinearity, and a gain deviation of +/-0.2% over the temperature range of ~20-60 • 𝐶. The sensor has a breakdown voltage of 100V, and its lifetime can meet or exceed that of instrument transformers when operated at voltages <42𝑉 𝑟 𝑚𝑠 . We believe that our sensor has the potential to reduce the cost of grid monitoring, providing a path towards more distributed sensing and control of the grid.