I am building many sensors using nodemcu and lua trying to connect everything together..
Have a look at my other thingspeak pages:
SDM120C energy monitor
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 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.
This channel holds data transferred by the WATSON, which monitors power usage by any residential appliance it is connected to.
Using an arduino with ethernet shield, and a current clamp in the main phase. monitoring the power consumption with a Triple tarif
esp8266 connected to power meter to count pulses and calculate kW power usage
© 2019 The MathWorks, Inc.