One of the benefits of the ESP8266-based NodeMCU development boards is the ease of getting local data onto the Internet thanks to the onboard WiFi system and the Lua programming language. This has been demonstrated very well by Instructables user WilliamT15 who has documented how to get the data from a DHT22 temperature and humidity sensor into the Thingspeak open-source data platform.
As the code for our popular DHT22-based sensors has now matured for the ESP8266 getting started is fast with the only hurdle being connecting the sensor to the NodeMCU module. In the example project a small prototyping expansion board has been created which solves the problem neatly and preserves the NodeMCU board for use in other projects. However the effort is worthwhile as the data can be presented neatly and accessed from any web-based device, for example:
If you’re looking for a sensor to measure temperature and humidity – check out our HUMID: humidity and temperature sensor module. Designed around the DHT22 sensor, it only requires one digital pin and power – and is easy to use with out Quick Start guide. With a temperature range of -4°C to +125°C with +/-0.5°C accuracy, and humidity at 0-100% with 2-5% accuracy you’re ready to measure. For more information and to order, click here.