Measure temperature and humidity with Micropython and ESP8266.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Record temperature and humidity using Micropython and send data to a remote logging service via HTTP/GET.

Supported sensors:

  • DHT11
  • DHT22
  • DS18B20

Supported logging services:

  • thingspeak
  • phant /
  • arbitrary HTTP API via configuration

Tested only using Wemos D1 mini ESP8266, but should be easily portable for similar hardware.


Install micropython firmware, copy all *.py files (e.g. using mpfshell) and configure as described below.


To create a config.json file run on MicroPython REPL prompt (e.g via piccoom):

import config

To rewrite the configuration file, reset the ESP8266, interrupt the running by CTRL+C and then follow above instructions.