Basic example of data collection, using the ESP8285 with the dht22 sensor, where the relative humidity and temperature are plotted with respect to time in real time chart and consuming endpoints reactively with Scheduled WebClient.
The code used in the ESP8285 nodemcu is from the following repo.
https://github.com/rucko24/async-nodemcu