I am building many sensors using nodemcu and lua trying to connect everything together..
Have a look at my other thingspeak pages:
ADS1115+ESP-01 (1M) OTA updated based on https://goo.gl/AH8Y3w sketch adapted to my 30A CT and 6V transformer. ESP is powered from a separate 3.3V source.
inside house temp
Using an arduino with ethernet shield, and a current clamp in the main phase. monitoring the power consumption with a Triple tarif
Using an ESP8266 ESP-01 module and an Arduino Pro Mini 3.3V I wirelessly update all outputs from my thermostat to here for data analysis and because it's cool.
This requires a voltage divided rectifier since thermostats run at least 24 VAC RMS.
esp8266 connected to power meter to count pulses and calculate kW power usage
© 2017 The MathWorks, Inc.