How To Design Smart Energy Meter