ESP8266 WiFi Project – DHT22 DeepSleep naar EmonCMS (logger)

ESP8266 chip icon

Website / Bron

Let op: Om DeepSleep te gebruiken moet je de ESP-01 aanpassen, zie hier voor meer informatie!

Informatie (ENG)

I wanted to have a few portable and long lasting temperature and possible humidity sensors I could just throw around hand have them working with as little hassle as possible. Enter the Battery Powered ESP8266 WiFI Temperature and Humidity cloud logger.

Unfortunately after numerous attempts, DHT22 and deep sleep do not seem to go well together. After some time, no matter what code and library I uses, it would stop sending data. I have had help from other community members as well testing this, and the results are always the same, the DHT dies after a number of deep sleep cycles.

For powered projects that don t sleep it is fine. If I get anywhere with it, I will post another update. We ve even added a transistor to switch it off, no go!, The DS18B20 based sensors however have been running since last august now without any hickups.


  • easily movable
  • last at least 3 months on a battery
  • minimum amount of components (that hopefully i had laying around)
  • post to emoncms
  • later: post to MQTT


  • ESP8266 ESP-01 based (had)
  • Arduino IDE with ESP8266 support based firmware, with WiFiManager for easier portability
  • DHT22 or DS18B20
  • low voltage drop and low quiescent current regulator
  • 18650 Rechargeable Lithium LiFePO4 Battery (eCig battery)
  • upload data to EmonCMS


Arduino Code