Rats can detect the scent of food from several feet away. They have extremely sharp noses. They're often following their noses when they're intruding on your spaces.