you could try this method of hardware of emonetx sheild and wemos r3 and mqtt
i do it this way into influxdb though I have mine using a openwrt router to handle everything - all my home automation (domiticz , zigbee2 mqtt wifi etc -) and data capture (collectd-mqtt > influxdb). I like it this way it easy and self configuring and new device/sensor will automatically be added to influxdb data with out any configuration other then the format of the mqtt data publish)