NodeMCU with DHT22 sensor, using Azure, Node Red and HiveMq
https://www.youtube.com/watch?v=7ITxtLSsQrc&t=212s
NodeMCU PinOuts using D1 which = GPIO5
https://www.youtube.com/watch?v=4RTaxUfm3dM
CODE for Arduino IDE: https://github.com/itchopshop/IOT-NodeMCU/blob/master/DHTtesterTutorialPart2/DHTtesterTutorialPart2.ino
https://www.arduino.cc/en/Main/Software ******** Arduino IDE
http://arduino.esp8266.com/stable/package_esp8266com_index.json ****** Additional Boards Manager URLs
https://github.com/adafruit/Adafruit_Sensor **** Main Sensor Library
Change the following code in your Arduino C++ program to the below.
#define DHTPIN 5 // GPIO 15 (D1) ***** what digital pin we're connected to
https://www.youtube.com/watch?v=D4AVv1ntq8w&t=15s
Azure subscription, VM set up in Azure, configuring end points and Node Red installation
https://azure.microsoft.com/en-us/free/ **** link to Azure subscription
http://nodered.org/docs/getting-started/installation.html **** Node-Red setup
https://www.java.com/en/download/windows-64bit.jsp ***** Java Install
https://nodejs.org/en/ ***** Node.js install
http://www.hivemq.com/try-out/ *** Tryout
Connect to Public Broker
Host: broker.hivemq.com
Port: 1883
Websocket Port: 8000
https://www.youtube.com/watch?v=ektTXmgxELs
Add pubsubclient library to you Arduino IDE.
http://127.0.0.1:1880/ **** Node Red designer Url
change topics in Node red to:wifiTemp and wifiHumidity
https://flows.nodered.org/ ****** Flows and useful nodes
https://flows.nodered.org/node/node-red-dashboard **** Dashboard install for Node-Red
npm i node-red-dashboard
http://127.0.0.1:1880/ui/ ***** Node Red Dashboard URL
Code for this section: https://github.com/itchopshop/IOT-NodeMCU/blob/master/NodeMCUAzurePart3/NodeMCUAzurePart3.ino
https://www.youtube.com/watch?v=mEpSGGSCIiA&t=2s
Node Red flow for this tutorial: https://github.com/itchopshop/IOT-NodeMCU/blob/master/NodeRedFlowPart5.txt
Just some handy links for setting up Node red
https://flows.nodered.org/ ******** Flows and Nodes
https://nodered.org/docs/security ****** Security