The budget-friendly hack 'will deter' pests from your home, according to an expert.