A 32-year-old Indian national has been sentenced in a federal court to 12 years in jail for attempting to entice a minor to engage in illegal sexual activity, a US Attorney said Thursday.