Looking help to code Arduino Pro Micro + ESP8266v1 + SRF05

May I ask as if someone could help me with the coding to reduce the power consumption of this project?

I am trying to:

  1. Intergrating the NewPing Library code instead of PulseIn.
  2. Power saving for this project via putting the whole kit in sleep mode, only activating the sensor by specific period and emailing the result to specific address.

Thanks!

Up, looking for your guidance please.