Redefining pins for DHT sensor

Nope, #define has no business whatsoever inside any function.

What should happen once you had a complete loss of power? Retained variables need the SRAM to be powered at all times to keep their value.