Read the link in Reply#10. You need a watt meter and Ammeter that have some kind of output signal (analog or digital) that can be intefaced with uC. SEE ATTACHED SCREENSHOT.