Tested the power monitor code successfully.