Measure energy used by counting blinks on a power meter with ESP, MicroPython and a Light Dependent Resistor