Type: Work in progress

Difficulty: Advanced

Estimated time: 2 hours

License: GPL3+


Hardware components:

  • NodeMCU ESP8266 Breakout Board x1
  • DHT11 Temperature & Humidity Sensor x1
  • LED (generic) x 1
  • Resistor 221 ohm x 2
  • Android Phone x 1
  • Breadboard x 1
  • Button (generic) x 1

Software apps and online services:

  • Arduino IDE
  • IoT-Ignite Service Registration
  • AndroidThings Agent APP
  • IoT-Ignite Service APP
  • Soldering iron (optional)
  • Register and login free developer account at https://devzone.iot-ignite.com/dpanel/login.php?page=development ,
  • Download AndroidThings agent,
  • Download AndroidThings from this link,
  • Download and setup win32 disk imager application,
  • Flash the SD Card with Android Things Image, you will need the following this link,
  • Boot gateway with Android Things and connect Ethernet,
  • Run PowerShell and connect Android Things with ADB console,
  • Download and install Android Things agent with ADB console command,
  • Enter https://enterprise.iot-ignite.com with your devzone credentials,
  • Follow; Administration > DROM > DROM Configuration > Add DROM Configuration step,
  • Type a new DROM configuration name and click save button,
  • Follow; Administration > DROM > DROM Gateway Configuration > Add DROM Configuration step, type Raspberry MAC ID (Example FF:FF:FF:FF:FF:FF@ignite.com) , click add button,
  • Click the push button and registration will done.

Hand tools and fabrication machines:


Basically, the project will transfer data with DHT11 over wireless through NodeMCU.
This transfer will be done by using an AndroidThings as a gateway and light a led by a rule we set.

  • NodeMCU will be Wi-Fi Access Point; start transmitting your IP and port number to network.
  • Save device to system on AP mode, and establish wireless connection.
  • Once the client connection is set; read the frequency of temperature and humidity transmission, and start transmitting the data to client in this frequency.
  • Re-connect to network if connection is lost, end client connection and wait for the re-connection.
  • Execute when LED event happened.
  • Set rule and connect IFTTT connection, use your data for channels.

1 Devzone Register and Application Download

2 Getting Ready for Android as IoT Gateway

3 AndroidThings Configuration – ADB Connect, IoT Agent Installation

4 AndroidThings Configuration – Wi-Fi (DROM) Connect, IoT Agent Installation

DROM is a recently developed ARDIC Technology that enables the device’s mac ID to be matched remotely on the cloud. DROM establishes connection with the tenant and completes the registration process automatically.

5 Prepare NodeMCU for Gateway Registration

Step 1: Components Connect the DHT11, Resistor and the LED

Connect the pins as shown below for device’s physical connection (this connection is configured for the provided sample codes).

The set is physically ready. Now follow the steps to make the set ready for computer installation of the necessary software.

Step 2: Getting Ready for NodeMCU

Go to File/Preferences and add additional esp8266 library from the link below to introduce Arduino IDE with NodeMCU to make it programmable.


Go to Tool menu and enter esp8266 on board manager screen and click install to finish installation.

Step 3: Installing File System and Libraries

Getting ready for installing NodeMCU file system. Download filesystem uploader plugin here for this https://github.com/esp8266/arduino-esp8266fs-plugin/releases/tag/0.2.0, and extract under Arduino IDE as C:\Program Files (x86)\Arduino\tools\ESP8266FS\tool

Re-start Arduino IDE and make it ready by data upload under Tools menu.

Here we will install the libraries to be used for the application.

For timer library; download from https://github.com/JChristensen/Timer, and add the file to IDE by “sketch include library, add zip library”.

Install other general libraries such as ESP8266WiFi, ESP8266mDNS, WiFiUdp, FS ve DHT as well (Sketch > Include...

Read more »