When your doctor prescribes you an antibiotic, do you take it all? If not, you are not alone.

Non-adherence rates, or not taking your medication, are between 25 and 50 percent in the United States.

Now there’s a new way for your doctor to know if you’re taking your medicine.

The FDA has just approved a digital pill that will tell doctors not just if you took the medication, but also when you took the medication.

Here's how it works.

The sensor is embedded in your medication and when you swallow your pill, your doctor gets an electronic notification that you took it. They are starting off with the anti-psychotic medication, Abilify.

Why is the FDA allowing this to happen?

It's a non-invasive device and there are other similar devices like it on the market -- like digital cameras you can swallow for colon cancer.

And, 28 percent of American's have chronic diseases like diabetes, high cholesterol and heart disease.

Non-compliance to medication costs an estimated $100 billion per year. Because these patients get sicker when they don't take their medication, they end up in the hospital or needing more extensive surgery or medical care.

For more information, click here.

â–ºMake it easy to keep up to date with more stories like this. Download the WZZM 13 app now.

Have a news tip? Email news@wzzm13.com, visit our Facebook page or Twitter.