If you're trying to get a good night's rest in a noisy neighborhood, a white noise machine might be able to help. In an interview with CNN, Dr. Michael Grandner, director of the Sleep and Health Research Program at the University of Arizona College of Medicine, said these sound machines use a process called noise masking to "create a blanket of sound around you that absorbs other sound waves, so that little creaks and cracks and cars driving by don't quite make it to your brain, and you don't respond to them."

For anyone looking to try it out next time they need a solid eight hours, the 4.6-star-rated HoMedics SoundSpa white noise sound machine is currently available in silver for just $20 on Amazon. Compared with the standard retail price on the brand’s site, this is a $10 discount. It’s also available in blue for $22.

Buy the HoMedics SoundSpa White Noise Sound Machine on Amazon

This nighttime device has six natural sound recordings for you to choose from like white noise, thunder, ocean, rain, summer night, and brook. Weighing in at just half a pound and measuring 6.5 inches long by 6 inches wide, you can easily fit this gadget into a backpack, suitcase, or carry-on bag. It has three auto-timers, so if you don’t want ocean waves crashing all night long, you can have them turn off after 15, 30, or 60 minutes. The main gadget comes with an AC adapter and a starter guide, but you’ll have to get four AA batteries separately.

One reviewer claims it used to take them about an hour to fall asleep each night, and now it is only 20 minutes, saying "I also don't wake up as many times during the night. I love how the volume is adjustable and how the machine offers more than just white noise." Another reviewer has used the device for their son every night since he was born and says "…my kid sleeps through my dogs barking, parties in our living room, which is just down the hall from his bedroom, and fireworks on the 4th of July."

Check out HoMedics SoundSpa white noise sound machine in silver on Amazon for $20.

Sign Up Today: Get exclusive deals, product news, reviews, and more with the Mental Floss Smart Shopping newsletter!