Open Energy Monitor Port

The problem arises wherever the library uses 1024 (should actually be 1023) instead of 4095.
Hence your readings tend to be only a quarter or four times as high as they actually should be.
The wrong factor may also be part of the constants used here

     if ((startV < (ADC_COUNTS*0.55)) && (startV > (ADC_COUNTS*0.45))) st=true;  //check its within range

Even the EmonLib contributed to Web IDE has that same calculation flaw.
But there is another library semonlib which uses some adapted maths.

Oh I see! So should I switch to using semonlib or should I add a line to modify the code that runs the program?

Your choice.

Hi, I switched to using the semonlib and it seems to be working but just wondering if I would need any other calibration with regards to this? i still get values for my 60W fan at about 27.84W and it seems to be far from that of 60W

Good morning guys …I have a solution to the issue with these boards …I’ve designed my own open energy monitor but I used a commercially available power converter mouser.com IRM-02-5 $6.00 120/240 to 5VDC to power the Module and the LTC2945 DC current and voltage Monitor …I used a .5 volt bridge rectifier to rectify the AC current into DC . With Capacitor to smooth things out …Works pretty well …
using

Whichever version of emon.lib is in the Web IDE, I have been using it on the Photon for 2 trouble-free years. Actually my weather data provider quit, so I have to recode due to that.
I built a voltage divider and current transformer setup similar to the one on the Open Energy Monitor page and use it to measure the output of my solar array.
Whoever added that to the Web IDE, thanks a lot!!