Carpenter bees have a natural aversion to the smell of lavender. If you want to keep them away, try planting some lavender plants around your home or garden. You can also purchase lavender oil to use as a repellent.