Post your code.
And a schematic.
Software issues require code
Hardware issues require schematics.
Assuming you get readings of power as you said when it is running you don't get readings. The problem is in code.
If you never get readings, then the problem could be in either software or hardware
As a schematic of how you measure AC voltage is important.
As well as how you measure AC current.