Smart Meter For Power Factor Enhancement In Real-time