During deepSleep(), the rest of the MCU is completely un-powered, so it can not do any things.
ESP8266-01
ATMEGA328P-PU
2 x LED
PIR sensor
TMP36 temperature sensor
The sensors are read from an ATMEGA and then data sent via serial to the ESP8266 so the optimization will mainly be on the ATMEGA, was looking to see if there was anyway to optimize the ESP8266 which basically sits waiting for messages via UART then sends the data to my platform. Will get the basics sorted on the ATMEGA and then will probably pick this conversation up again and see if there are any further ways to optimize the ESP8266.