An ESP8266 with Static IP, sending DHT11 data via MQTT, going into DeepSleep

Sometimes, all you need is a quick program that needs to send some sensor data from a location that you don’t want or can’t put a power cable to.
Battery power, sending an ESP8266 into deepsleep for most of the time can be the answer.

The program here does just that. For reasons of speed it uses a static IP set up.
Dont forget to connect GPIO16 to the RST pin on your ESP8266.  A bare ESP8266 is your best choice. If you are using an ESP8266-01, you will need to have good eyes to solder a wire between pin 16 and the RST pin.

You can download the full program here.

4 thoughts on “An ESP8266 with Static IP, sending DHT11 data via MQTT, going into DeepSleep”

  1. I admit nowadays I don’t use ESP-01 boards for battery powered projects. There, I prefer the ESP-12. The ESP-01 is my preferred choice for i.e. Tasmota, controlling low voltage LED drivers

    1. I fully agree. I have a few esp12-f chips and that is just as easy and just as cheap.
      Me eyes are just not capable enough anymore to do soldering on a small chip pin.
      Too bad, but those are the facts

  2. Would this work with a DHT22?

    On Mon, 4 Nov 2019, 11:59 Arduino, ESP8266, ESP32 & Raspberry Pi stuff, wrote:

    > E posted: “Sometimes, all you need is a quick program that needs to send > some sensor data from a location that you don’t want or can’t put a power > cable to. Battery power, sending an ESP8266 into deepsleep for most of the > time can be the answer. The program here” >

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.