Other than sneezing, does your hamster shows any of these symptoms: runny eyes, crusty eyes sealed shut, lethargy, loss of appetite, nasal drainage?
Do you use perfumes, scented candles, electric "plug-in" style diffusers, or scented room sprays near your hamster's cage?
Do you use pine or cedar shavings as a bedding material for your hamster?
Is there a bloody nasal discharge coming from your hamster's nose?
Hamsters are known to get respiratory tract infections. These infections can turn into something bigger like pneumonia, but if treated right away are usually easy to cure. Bacteria from the environment or food or even another hamster can cause an infection that may make your hamster sneeze.
Some respiratory irritants in your hamster's environment can cause your hamster to sneeze because of the scent it gives off. If you use one or several possible respiratory irritants, it should be easy to stop using them around your hamster or move your hamster's cage from the source of the fumes.
Pine and cedar shavings can be respiratory irritants to your hamster. If you use pine or wood shavings, consider switching to towels or a recycled paper bedding material such as Carefresh.
If you see bloody nasal discharge, this could be an indicator of a serious disease process that is causing your hamster to sneeze. If your hamster is acting abnormally in any way, seems lethargic, is eating less, not drinking, or sleeping most of the time, you should always consult with your exotics vet.
Some hamsters are allergic to the bedding in their cage, and others may find something in their food or treat that causes them to sneeze. Dust in the environment brings microscopic dust mites that your hamster can be allergic to as well. Try switching beddings, foods, to an unscented fabric softener, and using a HEPA filter by your hamster's cage to eliminate the allergens in his environment that may be causing him to sneeze.
https://www.thesprucepets.com/sneezing-hamsters-1238936

Sreten null
Hi! I’m Sreten Filipović. I graduated from the Faculty of Agriculture at the University of Belgrade, with a master's degree in Environmental Protection in Agricultural Systems. I’ve worked as a researcher at Finland's Natural Resources Institute (LUKE) on a project aimed at adapting south-western Finland to drought episodes. I founded a consulting agency in the field of environment and agriculture to help farmers who want to implement the principles of sustainability on their farms. I’m also a founding member of the nonprofit organization Ecogenesis from Belgrade whose main goal is non-formal education on the environment and ecology. In my spare time, I like to write blog posts about sustainability, the environment, animal farming, horticulture, and plant protection. I’ve also published several science-fiction short stories.
You can find me on LinkedIn at https://www.linkedin.com/in/sreten-filipovi%C4%87-515aa5158/