deepsleep causes infinity exception loop after few cycles

Hi, I can't found solution.

I have DHT-22 which works good in loop mode, but ESP8266 heating sensor about 2 celsius.
I try use only setup mode with deepsleep mode.

It's worked few times, but for a while cycles (10-20x) builtin led goes on and in serial I see infinity loop of exceptions (one line without usable information) If I push reset button, then system goes online for for some cycles.

Sketch is simple and wiring too - RST-GIO16 with 330ohm resistor (D0-RST)

Solved: 1kOhm pullup resitor on D4 (Wemos D1 min) GPIO2 (3.3kOhm not working)

shorted code

void setup() {

pinMode(D0, WAKEUP_PULLUP);

wifiManager.autoConnect(ssid_AP)

   clientMQTT.setServer(mqtt_server, mqtt_port);
   clientMQTT.setCallback(callbackMQTT);
   clientMQTT.connect(mqtt_client_name, mqtt_user, mqtt_pass);

   dht.begin();
   delay(2000); //some time for DHT module - I found somewhere

   dht1(); //this send data over mqtt

   ESP.deepSleep(temp_timmer * 1000);


}

shorted code

won't even compile. Post ALL of your code!

PaulS:
won't even compile. Post ALL of your code!

Hi Thank you for reply.

I have code splited to tabs, than I can send zipped.

I cant find what causes Fatal error loop ... (now is commented //#define DEBUG on _01_define - serial disabled)

http://www.esp8266.com/viewtopic.php?f=32&t=6763

maybe module is broken - last log and error loop

Deep sleep...

ets Jan 8 2013,rst cause:2, boot mode:(2,6)

Fatal exception (0):
epc1=0x40100000, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
Fatal exception (0):
epc1=0x40100000, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000
... ... ... ...

JimEli:
ESP Deep Sleep won't wake up. - Everything ESP8266

OK I will try PULL UP D4(GPIO2) and D3(GPIO0)

1kOhm resisor on D4 (GPIO2) seems solved the problem with reseting /3.3k not worked

not shure if one resistor solved problem ...

I am tried LoLin ESP8266 and maybe it solved problem (before Wemos D1 mini)