We all know there’s no place like home, so it’s no wonder you toss and turn a bit when you’re traveling for work. But don’t give up hope—or sleep: You can actually tweak your trip environment to encourage better rest. “Four major factors affect sleeping away from home: noise, light, temperature and time zones,” says Tracey Marks, MD, author of Master Your Sleep: Proven Methods Simplified.

To control for noise, try to get a hotel room far from the elevator and the ice machine. White noise can cancel out disruptive sounds, so set the radio in between stations for an imitation of a noise machine. Since a dark, cool environment is best for sleep, use blackout curtains if available. Block bottom-of-the-doorway light with a towel, and pack a sleep mask to shield your eyes. Set your room thermostat for a comfortable 68 to 74 degrees.

You likely can’t control your work-travel time zones, so try to maintain your regular sleep schedule if you’re traveling west for one or two days. Heading east is tougher because it’s hard to make yourself go to sleep earlier than usual. If possible, avoid red-eye flights since you probably won’t get the amount and quality of shut-eye you get in a bed. With the right adjustments, you’ll come back home feeling rested, ready for business—and prepared for playtime.