I keep humidifiers (winter) and dehumidifiers (summer)bin my music room. It takes time for the guitar to absorb or give off moisture, so if you keep the guitar at the proper moisture level, and transport it in a good case, and keep it away from temperature extremes, you should be able to keep it in good tune when you play.
Also, a good trick someone taught me was when you tune the open strings, tune it very slightly flat. Finger pressure when you fret sharpens the note slightly, and when you are playing in a gig, your finger pressure tends to be more than just practicing at home.
Thank you Sir for the advice. I very much appreciate it.