IoT applications to measure residential energy sources