Rats have been shown to detect certain odors they don't like, including those of eucalyptus, peppermint, citronella oil, coffee grounds, predator odor, and chili powder. Professionals like Tornado Pest Control can help you thoroughly get rid of them.